用户管理新增分配角色功能

This commit is contained in:
RuoYi
2021-07-01 18:01:36 +08:00
parent 04f5a93aa8
commit 9c7901f526
10 changed files with 306 additions and 16 deletions

View File

@ -125,3 +125,20 @@ export function importTemplate() {
method: 'get'
})
}
// 查询授权角色
export function getAuthRole(userId) {
return request({
url: '/system/user/authRole/' + userId,
method: 'get'
})
}
// 保存授权角色
export function updateAuthRole(data) {
return request({
url: '/system/user/authRole',
method: 'put',
params: data
})
}