1
This commit is contained in:
67
api/system/menu/model/index.ts
Normal file
67
api/system/menu/model/index.ts
Normal file
@@ -0,0 +1,67 @@
|
||||
/**
|
||||
* 菜单
|
||||
*/
|
||||
export interface Menu {
|
||||
// 菜单id
|
||||
menuId?: number;
|
||||
// 上级id, 0是顶级
|
||||
parentId?: number;
|
||||
// 菜单名称
|
||||
title: string;
|
||||
// 菜单路由地址
|
||||
path: string;
|
||||
// 菜单组件地址
|
||||
component: string;
|
||||
// 模块API
|
||||
modulesUrl?: string;
|
||||
// 模块ID
|
||||
modules?: string;
|
||||
// 菜单类型, 0菜单, 1按钮
|
||||
menuType?: number;
|
||||
// 排序号
|
||||
sortNumber?: number;
|
||||
// 权限标识
|
||||
authority?: string;
|
||||
// 菜单图标
|
||||
icon?: string;
|
||||
// 是否隐藏, 0否,1是(仅注册路由不显示左侧菜单)
|
||||
hide?: number;
|
||||
// 路由元信息
|
||||
meta?: string;
|
||||
// 创建时间
|
||||
createTime?: string;
|
||||
// 子菜单
|
||||
children?: Menu[];
|
||||
// 权限树回显选中状态, 0未选中, 1选中
|
||||
checked?: boolean;
|
||||
//
|
||||
key?: number;
|
||||
//
|
||||
value?: number;
|
||||
//
|
||||
parentIds?: number[];
|
||||
//
|
||||
openType?: number;
|
||||
disabled?: boolean;
|
||||
//
|
||||
appId?: number;
|
||||
//
|
||||
tenantId?: number;
|
||||
tenantName?: string;
|
||||
companyId?: number;
|
||||
// 插件Api
|
||||
plugUrl?: string;
|
||||
label?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 菜单搜索参数
|
||||
*/
|
||||
export interface MenuParam {
|
||||
title?: string;
|
||||
path?: string;
|
||||
authority?: string;
|
||||
parentId?: number;
|
||||
menuType?: number;
|
||||
hide?: number;
|
||||
}
|
||||
Reference in New Issue
Block a user