mirror of https://github.com/halo-dev/halo-admin
johnniang
6 years ago
1 changed files with 22 additions and 0 deletions
@ -0,0 +1,22 @@
|
||||
import service from '@/utils/service' |
||||
|
||||
const baseUrl = '/admin/api/users' |
||||
|
||||
const userApi = {} |
||||
|
||||
userApi.getProfile = () => { |
||||
return service({ |
||||
url: `${baseUrl}/profile`, |
||||
method: 'get' |
||||
}) |
||||
} |
||||
|
||||
userApi.updateProfile = updatedUserProfile => { |
||||
return service({ |
||||
url: `${baseUrl}/profile`, |
||||
method: 'put', |
||||
data: updatedUserProfile |
||||
}) |
||||
} |
||||
|
||||
export default userApi |
Loading…
Reference in new issue