From 42a04bebc28d91ef4f67dce95553a9234df4366a 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:46:27 +0800 Subject: [PATCH] =?UTF-8?q?feat(dict.d.ts):=20=E6=B7=BB=E5=8A=A0=E5=AD=97?= =?UTF-8?q?=E5=85=B8API=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/dict.d.ts | 90 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 src/types/api/dict.d.ts diff --git a/src/types/api/dict.d.ts b/src/types/api/dict.d.ts new file mode 100644 index 00000000..5acab7d1 --- /dev/null +++ b/src/types/api/dict.d.ts @@ -0,0 +1,90 @@ +import { PageQueryParam, PageResult } from "./base" + +/** + * 字典查询参数类型声明 + */ +export interface DictQueryParam extends PageQueryParam { + /** + * 字典名称 + */ + name: string | undefined +} + + +/** + * 字典分页列表项声明 + */ +export interface Dict { + id: number; + code: string; + name: string; + status: number; + remark: string; +} + +/** + * 字典分页项类型声明 + */ +export interface DictPageResult extends PageResult { + +} + +/** + * 字典表单类型声明 + */ +export interface DictFormData { + id: number | undefined, + name: string, + code: string, + status: number, + remark: string +} + +/** + * 字典项查询参数类型声明 + */ +export interface DictItemQueryParam extends PageQueryParam { + /** + * 字典项名称 + */ + name: string | undefined; + /** + * 字典编码 + */ + dictCode: string | undefined; +} + +/** + * 字典分页列表项声明 + */ +export interface DictItem { + id: number; + name: string; + value: string; + dictCode: string; + sort: number; + status: number; + defaulted: number; + remark?: string; +} + +/** + * 字典分页项类型声明 + */ +export interface DictItemPageResult extends PageResult { + +} + +/** + * 字典表单类型声明 + */ +export interface DictItemFormData { + id: number | undefined; + dictCode:string, + name: string; + code: string; + value: string; + status: number; + sort: number; + remark: string; +} \ No newline at end of file