feat: 新增角色列表

This commit is contained in:
xlsea
2025-05-10 01:17:37 +08:00
parent 67b5af9892
commit a903251c0d
11 changed files with 431 additions and 45 deletions

View File

@ -48,8 +48,16 @@ declare namespace Api {
type RoleOperateParams = CommonType.RecordNullable<
Pick<
Api.System.Role,
'roleId' | 'roleName' | 'roleKey' | 'roleSort' | 'menuCheckStrictly' | 'status' | 'remark'
> & { menuIds: CommonType.IdType[] }
| 'roleId'
| 'roleName'
| 'roleKey'
| 'roleSort'
| 'menuCheckStrictly'
| 'deptCheckStrictly'
| 'dataScope'
| 'status'
| 'remark'
> & { menuIds: CommonType.IdType[]; deptIds: CommonType.IdType[] }
>;
/** role list */
@ -61,6 +69,12 @@ declare namespace Api {
menus: MenuList;
}>;
/** role dept tree select */
type RoleDeptTreeSelect = Common.CommonRecord<{
checkedKeys: CommonType.IdType[];
depts: Dept[];
}>;
/** all role */
type AllRole = Pick<Role, 'roleId' | 'roleName' | 'roleKey'>;
@ -108,7 +122,9 @@ declare namespace Api {
/** user search params */
type UserSearchParams = CommonType.RecordNullable<
Pick<User, 'deptId' | 'userName' | 'nickName' | 'phonenumber' | 'status'> & Common.CommonSearchParams
Pick<User, 'deptId' | 'userName' | 'nickName' | 'phonenumber' | 'status'> & {
roleId: CommonType.IdType;
} & Common.CommonSearchParams
>;
/** user operate params */