菜单可正确被加载
This commit is contained in:
parent
c9c591c97c
commit
52056aba91
@ -1,5 +1,6 @@
|
||||
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 {
|
||||
@ -16,23 +17,17 @@ export const PermissionTypeText = {
|
||||
};
|
||||
|
||||
// 角色查询参数
|
||||
export interface RoleQuery extends BaseQuery {
|
||||
export interface RoleQuery extends BaseQuery{
|
||||
code?: string;
|
||||
name?: string;
|
||||
enabled?: boolean;
|
||||
pageNum?: number;
|
||||
pageSize?: number;
|
||||
sortField?: string;
|
||||
sortOrder?: 'asc' | 'desc';
|
||||
}
|
||||
|
||||
// 角色请求参数
|
||||
export interface RoleRequest {
|
||||
export interface RoleRequest extends BaseRequest{
|
||||
code: string;
|
||||
name: string;
|
||||
description?: string;
|
||||
sort?: number;
|
||||
enabled?: boolean;
|
||||
}
|
||||
|
||||
// 角色响应数据
|
||||
@ -48,16 +43,16 @@ export interface RoleResponse extends BaseResponse {
|
||||
|
||||
// 角色标签请求参数
|
||||
export interface RoleTagRequest {
|
||||
code: string;
|
||||
name: string;
|
||||
color: string;
|
||||
color?: string;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
// 角色标签响应数据
|
||||
export interface RoleTagResponse extends BaseResponse {
|
||||
code: string;
|
||||
name: string;
|
||||
color: string;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
// 权限数据
|
||||
@ -65,6 +60,10 @@ export interface Permission {
|
||||
id: number;
|
||||
code: string;
|
||||
name: string;
|
||||
type: string;
|
||||
type: PermissionType;
|
||||
menuId: number;
|
||||
menuName?: string;
|
||||
enabled: boolean;
|
||||
sort: number;
|
||||
description?: string;
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user