微调
This commit is contained in:
45
frontend/src/api/user/interface/function.ts
Normal file
45
frontend/src/api/user/interface/function.ts
Normal file
@@ -0,0 +1,45 @@
|
||||
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;//资源标识
|
||||
path:string;//路由路径
|
||||
component:string ;//组件地址
|
||||
icon?:string;//图标
|
||||
sort:number;//排序
|
||||
type:number;//资源类型0-菜单、1-按钮、2-公共资源、3-服务间调用资源
|
||||
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> {
|
||||
|
||||
}
|
||||
}
|
||||
93
frontend/src/api/user/interface/role.ts
Normal file
93
frontend/src/api/user/interface/role.ts
Normal file
@@ -0,0 +1,93 @@
|
||||
import type { ReqPage, ResPage } from '@/api/interface'
|
||||
|
||||
// 角色管理模块
|
||||
export namespace Role {
|
||||
|
||||
|
||||
/**
|
||||
* 用户数据表格分页查询参数
|
||||
*/
|
||||
export interface ReqRoleParams extends ReqPage{
|
||||
id: string; // 装置序号用户ID 必填
|
||||
name?: string; //用户名(别名)
|
||||
code?: string; //角色代码
|
||||
}
|
||||
//角色接口
|
||||
export interface RoleBO {
|
||||
id: string; //角色类型ID
|
||||
name: string; //角色类型名称
|
||||
code: string; //角色代码
|
||||
type: number; //角色类型
|
||||
remark?:string; //角色描述
|
||||
state:number;
|
||||
createBy?:string; //
|
||||
createTime?: string; // 创建时间
|
||||
updateBy?: string; //
|
||||
updateTime?: string; // 更新时间
|
||||
}
|
||||
|
||||
//角色接口
|
||||
export interface RoleFunctionId {
|
||||
id: string[]; //菜单id
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户表格查询分页返回的对象;
|
||||
*/
|
||||
export interface ResRolePage extends ResPage<RoleBO> {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// export interface Permission{
|
||||
// key: string; //权限名称
|
||||
// label: string; //权限ID
|
||||
// disabled:boolean; //是否拥有该权限
|
||||
// }
|
||||
|
||||
// 角色列表
|
||||
// export interface ResRoleList {
|
||||
// id: string; //角色类型ID
|
||||
// rolename: string; //角色类型名称
|
||||
// status: number; //角色类型状态
|
||||
// describe:string; //角色描述
|
||||
// permissionList?:Permission[]; //角色权限列表
|
||||
// }
|
||||
|
||||
|
||||
|
||||
|
||||
// export interface ReqRoleParams extends ReqPage {
|
||||
// id: string; //角色类型ID
|
||||
// rolename: string; //角色类型名称
|
||||
// status: number; //角色类型状态
|
||||
// describe:string; //角色描述
|
||||
// permissionList?:Permission[]; //角色权限列表
|
||||
// }
|
||||
// 角色字典
|
||||
// export interface ResStatus {
|
||||
// roleLabel: string;
|
||||
// roleValue: number;
|
||||
// }
|
||||
|
||||
// export interface ResGender {
|
||||
// genderLabel: string;
|
||||
// genderValue: number;
|
||||
// }
|
||||
|
||||
//角色权限列表
|
||||
// export interface ResPermissionList {
|
||||
// key: string;
|
||||
// label: string;
|
||||
// disable?: Permission[];
|
||||
// }
|
||||
|
||||
// export interface ResRole {
|
||||
// id: string;
|
||||
// name: string;
|
||||
// children?: ResDepartment[];
|
||||
// }
|
||||
}
|
||||
Reference in New Issue
Block a user