feat: 同步接口更新
Former-commit-id: 29a22a96043a55445d48a086aa0a9157bcf7d6c6
This commit is contained in:
9
src/types/api/lab/seata.d.ts
vendored
9
src/types/api/lab/seata.d.ts
vendored
@@ -1,9 +0,0 @@
|
||||
/**
|
||||
* Seata表单类型声明
|
||||
*/
|
||||
export interface SeataFormData {
|
||||
openTx: boolean;
|
||||
stockEx: boolean;
|
||||
accountEx: boolean;
|
||||
orderEx: boolean;
|
||||
}
|
||||
39
src/types/api/system/menu.d.ts
vendored
39
src/types/api/system/menu.d.ts
vendored
@@ -10,8 +10,9 @@ export interface MenuQueryParam {
|
||||
*/
|
||||
|
||||
export interface MenuItem {
|
||||
id: number;
|
||||
id?: number;
|
||||
parentId: number;
|
||||
type?: string | 'CATEGORY' | 'MENU' | 'EXTLINK';
|
||||
createTime: string;
|
||||
updateTime: string;
|
||||
name: string;
|
||||
@@ -65,3 +66,39 @@ export interface MenuFormData {
|
||||
*/
|
||||
type: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 资源(菜单+权限)类型
|
||||
*/
|
||||
export interface Resource {
|
||||
/**
|
||||
* 菜单值
|
||||
*/
|
||||
value: string;
|
||||
/**
|
||||
* 菜单文本
|
||||
*/
|
||||
label: string;
|
||||
/**
|
||||
* 子菜单
|
||||
*/
|
||||
children: Resource[];
|
||||
/**
|
||||
* 权限集合
|
||||
*/
|
||||
perms: Permission[];
|
||||
}
|
||||
|
||||
/**
|
||||
* 权限类型
|
||||
*/
|
||||
export interface Permission {
|
||||
/**
|
||||
* 权限值
|
||||
*/
|
||||
value: string;
|
||||
/**
|
||||
* 权限文本
|
||||
*/
|
||||
label: string;
|
||||
}
|
||||
|
||||
3
src/types/api/system/role.d.ts
vendored
3
src/types/api/system/role.d.ts
vendored
@@ -1,3 +1,4 @@
|
||||
import { StringMap } from 'i18next';
|
||||
import { PageQueryParam, PageResult } from '../base';
|
||||
|
||||
/**
|
||||
@@ -40,7 +41,7 @@ export interface RoleFormData {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
export interface RoleResourceData {
|
||||
export interface RoleResource {
|
||||
menuIds: string[];
|
||||
permIds: string[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user