feat(perm.d.ts): 添加权限API的TypeScript类型描述文件
This commit is contained in:
39
src/types/api/perm.d.ts
vendored
Normal file
39
src/types/api/perm.d.ts
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
import { PageQueryParam, PageResult } from "./base"
|
||||
|
||||
/**
|
||||
* 权限查询参数类型声明
|
||||
*/
|
||||
export interface PermQueryParam extends PageQueryParam {
|
||||
menuId: any;
|
||||
name: string | undefined;
|
||||
}
|
||||
|
||||
/**
|
||||
* 权限分页列表项声明
|
||||
*/
|
||||
export interface PermItem {
|
||||
id: number;
|
||||
name: string;
|
||||
menuId: string;
|
||||
urlPerm: string;
|
||||
btnPerm: string;
|
||||
roles?: string[];
|
||||
}
|
||||
|
||||
/**
|
||||
* 权限分页项类型声明
|
||||
*/
|
||||
export interface PermPageResult extends PageResult<PermItem[]> {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 权限表单类型声明
|
||||
*/
|
||||
export interface PermFormData {
|
||||
id: number,
|
||||
name: string,
|
||||
urlPerm: string,
|
||||
btnPerm: string,
|
||||
menuId: string
|
||||
}
|
||||
Reference in New Issue
Block a user