mall-uniapp/sheep/api/member/user.js

45 lines
895 B
JavaScript
Raw Normal View History

2023-12-17 09:06:11 +00:00
import request from '@/sheep/request2';
const UserApi = {
// 修改基本信息
updateUser: (data) => {
return request({
url: '/app-api/member/user/update',
method: 'PUT',
data,
custom: {
showSuccess: true,
auth: true,
},
});
},
2023-12-17 10:57:08 +00:00
// 修改密码
updateUserPassword: (data) => {
return request({
url: '/app-api/member/user/update-password',
method: 'PUT',
data,
custom: {
loadingMsg: '验证中',
showSuccess: true,
successMsg: '修改成功'
},
});
},
2023-12-17 09:06:11 +00:00
// 重置密码
resetUserPassword: (data) => {
return request({
url: '/app-api/member/user/reset-password',
method: 'PUT',
2023-12-17 09:52:49 +00:00
data,
custom: {
loadingMsg: '验证中',
showSuccess: true,
successMsg: '修改成功'
}
2023-12-17 09:06:11 +00:00
});
},
};
export default UserApi;