1 line
3.2 KiB
Plaintext
1 line
3.2 KiB
Plaintext
|
{"version":3,"file":"user.js","sources":["../../../../../../src/sheep/api/member/user.js"],"sourcesContent":["import request from '@/sheep/request'\r\n\r\nconst UserApi = {\r\n // 获得基本信息\r\n getUserInfo: () => {\r\n return request({\r\n url: '/member/user/get',\r\n method: 'GET',\r\n custom: {\r\n showLoading: false,\r\n auth: true,\r\n },\r\n })\r\n },\r\n // 修改基本信息\r\n updateUser: (data) => {\r\n return request({\r\n url: '/member/user/update',\r\n method: 'PUT',\r\n data,\r\n custom: {\r\n auth: true,\r\n showSuccess: true,\r\n successMsg: '更新成功',\r\n },\r\n })\r\n },\r\n // 修改用户手机\r\n updateUserMobile: (data) => {\r\n return request({\r\n url: '/member/user/update-mobile',\r\n method: 'PUT',\r\n data,\r\n custom: {\r\n loadingMsg: '验证中',\r\n showSuccess: true,\r\n successMsg: '修改成功',\r\n },\r\n })\r\n },\r\n // 基于微信小程序的授权码,修改用户手机\r\n updateUserMobileByWeixin: (code) => {\r\n return request({\r\n url: '/member/user/update-mobile-by-weixin',\r\n method: 'PUT',\r\n data: {\r\n code,\r\n },\r\n custom: {\r\n showSuccess: true,\r\n loadingMsg: '获取中',\r\n successMsg: '修改成功',\r\n },\r\n })\r\n },\r\n // 修改密码\r\n updateUserPassword: (data) => {\r\n return request({\r\n url: '/member/user/update-password',\r\n method: 'PUT',\r\n data,\r\n custom: {\r\n loadingMsg: '验证中',\r\n showSuccess: true,\r\n successMsg: '修改成功',\r\n },\r\n })\r\n },\r\n // 重置密码\r\n resetUserPassword: (data) => {\r\n return request({\r\n url: '/member/user/reset-password',\r\n method: 'PUT',\r\n data,\r\n custom: {\r\n loadingMsg: '验证中',\r\n showSuccess: true,\r\n successMsg: '修改成功',\r\n },\r\n })\r\n },\r\n}\r\n\r\nexport default UserApi\r\n"],"names":["request"],"mappings":";;AAEK,MAAC,UAAU;AAAA;AAAA,EAEd,aAAa,MAAM;AACjB,WAAOA,4BAAQ;AAAA,MAC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