第一次提交
This commit is contained in:
20
api/user.js
Normal file
20
api/user.js
Normal file
@@ -0,0 +1,20 @@
|
||||
import http from './index.js';
|
||||
|
||||
// 获取用户资料
|
||||
export const getUser = (params) => http.get('/auth/user', {params})
|
||||
|
||||
// 修改用户资料
|
||||
export const updateUser = (data) => http.put('/system/user', data)
|
||||
export const getMyQrCode = (data) => http.post('/open/user/myQrCode',data)
|
||||
// 获取用户资料
|
||||
export const getAgentUser = (id) => http.get('/open/user/agentUser/' + id)
|
||||
|
||||
export const updatePassword = (data) => http.put('/auth/password',data)
|
||||
|
||||
export default {
|
||||
getUser,
|
||||
updateUser,
|
||||
getMyQrCode,
|
||||
getAgentUser,
|
||||
updatePassword
|
||||
}
|
||||
Reference in New Issue
Block a user