feat: 菜单管理

This commit is contained in:
dap
2024-09-22 21:37:32 +08:00
parent e61c3e9058
commit 664e97daa1
5 changed files with 500 additions and 4 deletions

View File

@@ -0,0 +1,46 @@
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[];
}