2021-11-26 09:47:23 +08:00
|
|
|
import { request } from '@/common/js/request.js'
|
|
|
|
|
|
|
|
// 获得用户的基本信息
|
|
|
|
export function getUserInfo() {
|
|
|
|
return request({
|
|
|
|
url: 'member/user/profile/get',
|
|
|
|
method: 'get'
|
|
|
|
})
|
2021-12-04 21:09:49 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// 修改
|
|
|
|
export function updateNickname(nickname) {
|
|
|
|
return request({
|
|
|
|
url: 'member/user/profile/update-nickname',
|
|
|
|
method: 'post',
|
|
|
|
header: {
|
|
|
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
|
|
},
|
|
|
|
data: {
|
|
|
|
nickname
|
|
|
|
}
|
|
|
|
})
|
2021-11-26 09:47:23 +08:00
|
|
|
}
|