You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

7 lines
526 B

3 days ago
  1. import http from 'libs/http'
  2. export const current = (): Promise<User.User> => http.get('/auth/current')
  3. export const addUser = (params: User.User): Promise<null> => http.post('/user', params)
  4. export const updateUser = (params: User.User): Promise<null> => http.put('/user', params)
  5. export const userList = (params: System.Page = { pageNum: 1, pageSize: 999 }): Promise<System.PageResponse<User.User>> => http.post('/user/page', params)
  6. export const delUser = (params: string): Promise<null> => http.delete(`/user/${params}`)