import http from './index.js';

// 获取用户资料
export const getUser = (params) => http.get('https://server.websoft.top/api/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
}
