1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- 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,
- },
- });
- },
- // 修改密码
- updateUserPassword: (data) => {
- return request({
- url: '/app-api/member/user/update-password',
- method: 'PUT',
- data,
- custom: {
- loadingMsg: '验证中',
- showSuccess: true,
- successMsg: '修改成功'
- },
- });
- },
- // 重置密码
- resetUserPassword: (data) => {
- return request({
- url: '/app-api/member/user/reset-password',
- method: 'PUT',
- data,
- custom: {
- loadingMsg: '验证中',
- showSuccess: true,
- successMsg: '修改成功'
- }
- });
- },
- };
- export default UserApi;
|