2024-10-16 11:27:17 +08:00
|
|
|
import type { ReqPage } from '@/api/interface'
|
|
|
|
|
|
|
|
|
|
// 角色管理模块
|
|
|
|
|
export namespace Role {
|
|
|
|
|
|
|
|
|
|
export interface Permission{
|
2024-10-17 16:34:13 +08:00
|
|
|
key: string; //权限名称
|
|
|
|
|
label: string; //权限ID
|
|
|
|
|
disabled:boolean; //是否拥有该权限
|
2024-10-16 11:27:17 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 角色列表
|
|
|
|
|
export interface ResRoleList {
|
|
|
|
|
id: string; //角色类型ID
|
|
|
|
|
rolename: string; //角色类型名称
|
|
|
|
|
status: number; //角色类型状态
|
|
|
|
|
describe:string; //角色描述
|
|
|
|
|
permissionList?:Permission[]; //角色权限列表
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 角色参数
|
|
|
|
|
export interface ReqRoleParams extends ReqPage {
|
|
|
|
|
id: string; //角色类型ID
|
|
|
|
|
rolename: string; //角色类型名称
|
|
|
|
|
status: number; //角色类型状态
|
|
|
|
|
describe:string; //角色描述
|
|
|
|
|
permissionList?:Permission[]; //角色权限列表
|
|
|
|
|
}
|
|
|
|
|
// 角色字典
|
|
|
|
|
export interface ResStatus {
|
|
|
|
|
roleLabel: string;
|
|
|
|
|
roleValue: number;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// export interface ResGender {
|
|
|
|
|
// genderLabel: string;
|
|
|
|
|
// genderValue: number;
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
//角色权限列表
|
|
|
|
|
export interface ResPermissionList {
|
2024-10-17 16:34:13 +08:00
|
|
|
key: string;
|
|
|
|
|
label: string;
|
|
|
|
|
disable?: Permission[];
|
2024-10-16 11:27:17 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// export interface ResRole {
|
|
|
|
|
// id: string;
|
|
|
|
|
// name: string;
|
|
|
|
|
// children?: ResDepartment[];
|
|
|
|
|
// }
|
|
|
|
|
}
|