菜单可正确被加载
This commit is contained in:
parent
c9c591c97c
commit
52056aba91
@ -1,5 +1,6 @@
|
|||||||
import type { BaseResponse } from '@/types/base/response';
|
import type { BaseResponse } from '@/types/base/response';
|
||||||
import type { BaseQuery } from '@/types/base/query';
|
import {BaseQuery} from "@/types/base/query.ts";
|
||||||
|
import {BaseRequest} from "@/types/base/request.ts";
|
||||||
|
|
||||||
// 权限类型枚举
|
// 权限类型枚举
|
||||||
export enum PermissionType {
|
export enum PermissionType {
|
||||||
@ -20,19 +21,13 @@ export interface RoleQuery extends BaseQuery {
|
|||||||
code?: string;
|
code?: string;
|
||||||
name?: string;
|
name?: string;
|
||||||
enabled?: boolean;
|
enabled?: boolean;
|
||||||
pageNum?: number;
|
|
||||||
pageSize?: number;
|
|
||||||
sortField?: string;
|
|
||||||
sortOrder?: 'asc' | 'desc';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 角色请求参数
|
// 角色请求参数
|
||||||
export interface RoleRequest {
|
export interface RoleRequest extends BaseRequest{
|
||||||
code: string;
|
code: string;
|
||||||
name: string;
|
name: string;
|
||||||
description?: string;
|
description?: string;
|
||||||
sort?: number;
|
|
||||||
enabled?: boolean;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 角色响应数据
|
// 角色响应数据
|
||||||
@ -48,16 +43,16 @@ export interface RoleResponse extends BaseResponse {
|
|||||||
|
|
||||||
// 角色标签请求参数
|
// 角色标签请求参数
|
||||||
export interface RoleTagRequest {
|
export interface RoleTagRequest {
|
||||||
code: string;
|
|
||||||
name: string;
|
name: string;
|
||||||
color: string;
|
color?: string;
|
||||||
|
description?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 角色标签响应数据
|
// 角色标签响应数据
|
||||||
export interface RoleTagResponse extends BaseResponse {
|
export interface RoleTagResponse extends BaseResponse {
|
||||||
code: string;
|
|
||||||
name: string;
|
name: string;
|
||||||
color: string;
|
color: string;
|
||||||
|
description?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 权限数据
|
// 权限数据
|
||||||
@ -65,6 +60,10 @@ export interface Permission {
|
|||||||
id: number;
|
id: number;
|
||||||
code: string;
|
code: string;
|
||||||
name: string;
|
name: string;
|
||||||
type: string;
|
type: PermissionType;
|
||||||
|
menuId: number;
|
||||||
|
menuName?: string;
|
||||||
|
enabled: boolean;
|
||||||
sort: number;
|
sort: number;
|
||||||
|
description?: string;
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user