From 6a86ea07d90964af57889d22bf7b69fe48004e6a 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:44:58 +0800 Subject: [PATCH] =?UTF-8?q?feat(client.d.ts):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=AE=A2=E6=88=B7=E7=AB=AFAPI=E7=9A=84TypeScript=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E6=8F=8F=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/client.ts | 52 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 src/types/api/client.ts diff --git a/src/types/api/client.ts b/src/types/api/client.ts new file mode 100644 index 00000000..df45a3a9 --- /dev/null +++ b/src/types/api/client.ts @@ -0,0 +1,52 @@ +import { PageQueryParam, PageResult } from "./base" + +/** + * 客户端查询参数类型声明 + */ +export interface ClientQueryParam extends PageQueryParam { + /** + * 客户端名称 + */ + clientId: string | undefined +} + + +/** + * 客户端分页列表项声明 + */ +export interface ClientItem { + clientId: string; + clientSecret: string; + resourceIds: string; + scope: string; + authorizedGrantTypes: string; + webServerRedirectUri?: any; + authorities?: any; + accessTokenValidity: number; + refreshTokenValidity: number; + additionalInformation?: any; + autoapprove: string; +} + +/** + * 客户端分页项类型声明 + */ +export interface ClientPageResult extends PageResult { + +} + +/** + * 客户端表单类型声明 + */ +export interface ClientFormData { + authorizedGrantTypes: string; + clientId: string; + clientSecret: string; + accessTokenValidity: string; + refreshTokenValidity: string; + webServerRedirectUri: string; + authorities: string; + additionalInformation: string; + autoapprove: string; + scope:string; +} \ No newline at end of file