Files
admin-vben5/apps/web-antd/src/api/system/role/model.d.ts
2024-09-24 15:35:02 +08:00

30 lines
591 B
TypeScript

export interface Role {
roleId: number;
roleName: string;
roleKey: string;
roleSort: number;
dataScope: string;
menuCheckStrictly: boolean;
deptCheckStrictly: boolean;
status: string;
remark: string;
createTime: string;
// 用户是否存在此角色标识 默认不存在
flag: boolean;
superAdmin: boolean;
}
export interface DeptOption {
id: number;
parentId: number;
label: string;
weight: number;
children: DeptOption[];
key: string; // 实际上不存在 ide报错
}
export interface DeptResp {
checkedKeys: number[];
depts: DeptOption[];
}