2024-12-17 09:13:52 +08:00
|
|
|
import upload from '@/utils/upload'
|
|
|
|
|
import request from '@/utils/request'
|
|
|
|
|
|
|
|
|
|
// 用户密码重置
|
2025-02-19 09:34:34 +08:00
|
|
|
export function updateUserPwd(data) {
|
2024-12-17 09:13:52 +08:00
|
|
|
return request({
|
2025-02-19 09:34:34 +08:00
|
|
|
url: '/smart-canteen/custInfo/change/password',
|
2025-01-16 11:09:35 +08:00
|
|
|
method: 'post',
|
2025-02-19 09:34:34 +08:00
|
|
|
data
|
2024-12-17 09:13:52 +08:00
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 查询用户个人信息
|
2025-02-19 09:34:34 +08:00
|
|
|
export function getUserProfile(data) {
|
2024-12-17 09:13:52 +08:00
|
|
|
return request({
|
2025-02-19 09:34:34 +08:00
|
|
|
url: '/smart-canteen/custInfo/queryCustInfoDetailForApp',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
// 查询用户头像
|
|
|
|
|
export function getUserHeaderPhoto(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/smart-canteen/api/v4/app/custInfo/query/profile/photo',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data
|
2024-12-17 09:13:52 +08:00
|
|
|
})
|
|
|
|
|
}
|
2025-02-21 10:03:35 +08:00
|
|
|
// 保存头像地址
|
|
|
|
|
export function saveUserHeaderPhoto(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/smart-canteen/api/v4/app/custInfo/save/profile/photo',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
2024-12-17 09:13:52 +08:00
|
|
|
|
|
|
|
|
// 修改用户个人信息
|
|
|
|
|
export function updateUserProfile(data) {
|
|
|
|
|
return request({
|
2025-02-19 09:34:34 +08:00
|
|
|
url: '/smart-canteen/custCasual/updateDetailInfoCasualForApp',
|
2025-01-16 11:09:35 +08:00
|
|
|
method: 'post',
|
2024-12-17 09:13:52 +08:00
|
|
|
data: data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 用户头像上传
|
|
|
|
|
export function uploadAvatar(data) {
|
|
|
|
|
return upload({
|
|
|
|
|
url: '/system/user/profile/avatar',
|
|
|
|
|
name: data.name,
|
|
|
|
|
filePath: data.filePath
|
|
|
|
|
})
|
|
|
|
|
}
|