feat: 新增根据权限获取用户列表功能
1. 在SysUserController中新增/list-by-permission接口 2. 实现根据权限标识获取用户列表的业务逻辑 3. 支持按租户筛选用户 4. 更新用户认证登录API文档 5. 优化前端用户相关接口
This commit is contained in:
1 parent
38166f105c
commit
cd87b47cf9
7 files changed
+359
-181
No files matched your search
@@ -209,6 +209,19 @@ export const deptTreeSelect = (): AxiosPromise<DeptTreeVO[]> => {
|
||||
});
|
||||
};
|
||||
|
||||
/** 获取具有指定权限的用户列表 */
|
||||
export function listUsersByPermission(permission: string, tenantId?: string): AxiosPromise<UserVO[]> {
|
||||
return request({
|
||||
url: '/system/user/list-by-permission',
|
||||
method: 'get',
|
||||
params: {
|
||||
permission,
|
||||
tenantId
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
export default {
|
||||
listUser,
|
||||
getUser,
|
||||
@@ -225,5 +238,6 @@ export default {
|
||||
getAuthRole,
|
||||
updateAuthRole,
|
||||
deptTreeSelect,
|
||||
listUserByDeptId
|
||||
listUserByDeptId,
|
||||
listUsersByPermission
|
||||
};
|
||||
Reference in new issue
Block a user