Files
admin-vben5/apps/web-antd/src/api/system/menu/model.d.ts

47 lines
850 B
TypeScript
Raw Normal View History

2024-09-22 21:37:32 +08:00
export interface Menu {
createBy?: any;
createTime: string;
updateBy?: any;
updateTime?: any;
remark?: any;
menuId: number;
menuName: string;
parentName?: string;
parentId: number;
orderNum: number;
path: string;
component?: string;
query: string;
isFrame: string;
isCache: string;
menuType: string;
visible: string;
status: string;
perms: string;
icon: string;
children: Menu[];
}
/**
* @description
* @param label
*/
export interface MenuOption {
id: number;
parentId: number;
label: string;
weight: number;
children: MenuOption[];
key: string; // 实际上不存在 ide报错
}
/**
* @description
* @param checkedKeys id
* @param menus
*/
export interface MenuResp {
checkedKeys: number[];
menus: MenuOption[];
}