绘制角色界面

This commit is contained in:
GYYM
2024-10-16 11:27:17 +08:00
parent 7c8d5644f7
commit 062a8f259f
4 changed files with 436 additions and 0 deletions

View File

@@ -0,0 +1,52 @@
import type { ReqPage } from '@/api/interface'
// 角色管理模块
export namespace Role {
export interface Permission{
id: string; //权限名称
name: string; //权限ID
havePermission:boolean; //是否拥有该权限
}
// 角色列表
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 {
id: string;
name: string;
permissionList?: Permission[];
}
// export interface ResRole {
// id: string;
// name: string;
// children?: ResDepartment[];
// }
}