2024-11-01 15:27:36 +08:00
|
|
|
|
import type { ReqPage, ResPage } from '@/api/interface'
|
|
|
|
|
|
|
|
|
|
|
|
// 菜单管理模块
|
|
|
|
|
|
export namespace Function {
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 菜单管理表格分页查询参数
|
|
|
|
|
|
*/
|
|
|
|
|
|
export interface ReqFunctionParams extends ReqPage{
|
|
|
|
|
|
name?: string; // 名称
|
|
|
|
|
|
code?: string; // 编码
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 菜单管理新增、修改、根据id查询返回的对象
|
|
|
|
|
|
*/
|
|
|
|
|
|
export interface ResFunction {
|
|
|
|
|
|
id: string;//资源表Id
|
|
|
|
|
|
pid:string;//节点(0为根节点)
|
|
|
|
|
|
pids?:string | null;//节点上层所有节点
|
|
|
|
|
|
name: string;//名称
|
|
|
|
|
|
code:string;//资源标识
|
2024-11-14 11:34:25 +08:00
|
|
|
|
path:string;//路由路径
|
|
|
|
|
|
component:string ;//组件地址
|
|
|
|
|
|
icon?:string;//图标
|
2024-11-01 15:27:36 +08:00
|
|
|
|
sort:number;//排序
|
2024-11-14 11:34:25 +08:00
|
|
|
|
type:number;//资源类型0-菜单、1-按钮、2-公共资源、3-服务间调用资源
|
2024-11-01 15:27:36 +08:00
|
|
|
|
remark?: string | null;//权限资源描述
|
|
|
|
|
|
state:number;//权限资源状态
|
|
|
|
|
|
create_By?:string | null;//创建人
|
|
|
|
|
|
create_Time?:string | null;//创建时间
|
|
|
|
|
|
update_By?:string | null;//更新人
|
|
|
|
|
|
update_Time?:string | null;//更新时间
|
|
|
|
|
|
children?: ResFunction[] | null;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 菜单管理表格查询分页返回的对象;
|
|
|
|
|
|
*/
|
|
|
|
|
|
export interface ResFunctionPage extends ResPage<ResFunction> {
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|