From f4cae09faf8c312db40e4d98837e73e528742e47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=9D=E5=85=88=E7=91=9E?= <1490493387@qq.com> Date: Sun, 13 Mar 2022 15:48:25 +0800 Subject: [PATCH] =?UTF-8?q?feat(perm.d.ts):=20=E6=B7=BB=E5=8A=A0=E6=9D=83?= =?UTF-8?q?=E9=99=90API=E7=9A=84TypeScript=E7=B1=BB=E5=9E=8B=E6=8F=8F?= =?UTF-8?q?=E8=BF=B0=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/types/api/perm.d.ts | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 src/types/api/perm.d.ts diff --git a/src/types/api/perm.d.ts b/src/types/api/perm.d.ts new file mode 100644 index 00000000..743bfd32 --- /dev/null +++ b/src/types/api/perm.d.ts @@ -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 { + +} + +/** + * 权限表单类型声明 + */ +export interface PermFormData { + id: number, + name: string, + urlPerm: string, + btnPerm: string, + menuId: string +} \ No newline at end of file