feat: 同步接口更新

Former-commit-id: 29a22a96043a55445d48a086aa0a9157bcf7d6c6
This commit is contained in:
郝先瑞
2022-08-02 23:48:23 +08:00
parent 0fbefbcf73
commit b71d999d5e
22 changed files with 390 additions and 702 deletions

View File

@@ -1,9 +0,0 @@
/**
* Seata表单类型声明
*/
export interface SeataFormData {
openTx: boolean;
stockEx: boolean;
accountEx: boolean;
orderEx: boolean;
}

View File

@@ -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;
}

View File

@@ -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[];
}