| | |
| | | }, |
| | | }) |
| | | } |
| | | export const getUserInfo = () => { |
| | | return request({ |
| | | url: '/blade-system/user/info', |
| | | method: 'get', |
| | | }); |
| | | }; |
| | | export const updateInfo = row => { |
| | | return request({ |
| | | url: '/blade-system/user/update-info', |
| | | method: 'post', |
| | | data: row, |
| | | }); |
| | | }; |
| | | // export const getUserInfo = () => { |
| | | // return request({ |
| | | // url: '/blade-system/user/info', |
| | | // method: 'get', |
| | | // }); |
| | | // }; |
| | | // export const updateInfo = row => { |
| | | // return request({ |
| | | // url: '/blade-system/user/update-info', |
| | | // method: 'post', |
| | | // data: row, |
| | | // }); |
| | | // }; |
| | | export const updatePassword = (oldPassword, newPassword, newPassword1) => { |
| | | return request({ |
| | | url: '/blade-system/user/update-password', |
| | |
| | | data |
| | | }) |
| | | } |
| | | |
| | | export const getUserInfo = () => { |
| | | return request({ |
| | | url: '/system/user/getInfo', |
| | | method: 'get', |
| | | }); |
| | | }; |
| | | export const updateInfo = row => { |
| | | return request({ |
| | | url: '/system/user/profile/update', |
| | | method: 'post', |
| | | data: row, |
| | | }); |
| | | }; |
| | | |
| | | /** 发送重置密码验证码 */ |
| | | export const sendResetCode = (phone) => { |
| | | return request({ |
| | | url: `/system/verificationCode/resetCode/${phone}`, |
| | | method: 'get', |
| | | }); |
| | | }; |
| | | |
| | | /** 根据验证码重置密码 */ |
| | | export const resetPassword = (data) => { |
| | | return request({ |
| | | url: '/system/user/retrievePassword', |
| | | method: 'post', |
| | | data: data, |
| | | }); |
| | | }; |
| | | |
| | | export const registerUser = (data) => { |
| | | return request({ |
| | | url: `/system/user/register`, |
| | | method: 'post', |
| | | data: data, |
| | | }); |
| | | }; |