From ef0ee0150225f650c366c58c3481c1e56cb14aa1 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:42 +0800 Subject: [PATCH] =?UTF-8?q?feat(login.d.ts):=20=E6=B7=BB=E5=8A=A0=E7=99=BB?= =?UTF-8?q?=E5=BD=95API=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/login.d.ts | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/types/api/login.d.ts b/src/types/api/login.d.ts index a71ef224..21b3213a 100644 --- a/src/types/api/login.d.ts +++ b/src/types/api/login.d.ts @@ -1,5 +1,5 @@ /** - * 登录请求参数 + * 登录请求参数类型声明 */ export interface LoginRequestParam { username: string, @@ -10,9 +10,18 @@ export interface LoginRequestParam { } /** - * 登录响应参数 + * 登录响应类型声明 */ export interface LoginResponseData { access_token: string, token_type: string -} \ No newline at end of file +} + +/** + * 验证码类型声明 + */ +export interface Captcha { + img: string, + uuid: string +} +