| | |
| | | // 修改用户 |
| | | export function updateUser(data) { |
| | | return request({ |
| | | url: '/system/user', |
| | | method: 'put', |
| | | url: '/system/user/edit', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | | } |
| | |
| | | // 删除用户 |
| | | export function delUser(userId) { |
| | | return request({ |
| | | url: '/system/user/' + userId, |
| | | method: 'delete' |
| | | url: '/system/user/remove/' + userId, |
| | | method: 'get' |
| | | }) |
| | | } |
| | | |
| | |
| | | password |
| | | } |
| | | return request({ |
| | | url: '/system/user/resetPwd', |
| | | method: 'put', |
| | | url: '/system/user/resetPwd/edit', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | | } |
| | |
| | | status |
| | | } |
| | | return request({ |
| | | url: '/system/user/changeStatus', |
| | | method: 'put', |
| | | url: '/system/user/changeStatus/edit', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | | } |
| | |
| | | // 修改用户个人信息 |
| | | export function updateUserProfile(data) { |
| | | return request({ |
| | | url: '/system/user/profile', |
| | | method: 'put', |
| | | url: '/system/user/profile/edit', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | | } |
| | |
| | | newPassword |
| | | } |
| | | return request({ |
| | | url: '/system/user/profile/updatePwd', |
| | | method: 'put', |
| | | url: '/system/user/profile/updatePwd/edit', |
| | | method: 'post', |
| | | params: data |
| | | }) |
| | | } |
| | |
| | | // 保存授权角色 |
| | | export function updateAuthRole(data) { |
| | | return request({ |
| | | url: '/system/user/authRole', |
| | | method: 'put', |
| | | url: '/system/user/authRole/edit', |
| | | method: 'post', |
| | | params: data |
| | | }) |
| | | } |