feat(login.d.ts): 添加登录API的TypeScript类型描述文件
This commit is contained in:
15
src/types/api/login.d.ts
vendored
15
src/types/api/login.d.ts
vendored
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 验证码类型声明
|
||||
*/
|
||||
export interface Captcha {
|
||||
img: string,
|
||||
uuid: string
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user