绘制角色界面
This commit is contained in:
52
frontend/src/api/role/interface/index.ts
Normal file
52
frontend/src/api/role/interface/index.ts
Normal 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[];
|
||||
// }
|
||||
}
|
||||
Reference in New Issue
Block a user