feat(login.d.ts): 添加登录API的TypeScript类型描述文件
This commit is contained in:
13
src/types/api/login.d.ts
vendored
13
src/types/api/login.d.ts
vendored
@@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* 登录请求参数
|
* 登录请求参数类型声明
|
||||||
*/
|
*/
|
||||||
export interface LoginRequestParam {
|
export interface LoginRequestParam {
|
||||||
username: string,
|
username: string,
|
||||||
@@ -10,9 +10,18 @@ export interface LoginRequestParam {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 登录响应参数
|
* 登录响应类型声明
|
||||||
*/
|
*/
|
||||||
export interface LoginResponseData {
|
export interface LoginResponseData {
|
||||||
access_token: string,
|
access_token: string,
|
||||||
token_type: string
|
token_type: string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 验证码类型声明
|
||||||
|
*/
|
||||||
|
export interface Captcha {
|
||||||
|
img: string,
|
||||||
|
uuid: string
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user