refactor: 完善认证数据类型声明

Former-commit-id: 59f8fbd1eb400e57d05e04fd79697e97a7e2a824
This commit is contained in:
haoxr
2022-12-18 13:18:27 +08:00
parent e138347ac4
commit 0cea50caa1

View File

@@ -1,10 +1,9 @@
/** /**
* 登录表单类型声明 * 登录数据类型
*/ */
export interface LoginForm { export interface LoginData {
username: string; username: string;
password: string; password: string;
grant_type: string;
/** /**
* 验证码Code * 验证码Code
*/ */
@@ -16,15 +15,16 @@ export interface LoginForm {
} }
/** /**
* 登录响应类型声明 * Token响应类型
*/ */
export interface LoginResult { export interface TokenResult {
access_token: string; accessToken: string;
token_type: string; refreshToken: string;
expires: number;
} }
/** /**
* 验证码类型声明 * 验证码类型
*/ */
export interface VerifyCode { export interface VerifyCode {
verifyCodeImg: string; verifyCodeImg: string;