创建请求验证码和登录接口
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
/**
|
||||
* 注册
|
||||
*/
|
||||
export type RegisterForm = {
|
||||
username : string;
|
||||
password : string;
|
||||
confirmPassword ?: string;
|
||||
code ?: string;
|
||||
uuid ?: string;
|
||||
userType ?: string;
|
||||
};
|
||||
|
||||
/**
|
||||
* 登录请求
|
||||
*/
|
||||
export class LoginData {
|
||||
username ?: string;
|
||||
password ?: string;
|
||||
rememberMe ?: boolean;
|
||||
socialCode ?: string;
|
||||
socialState ?: string;
|
||||
source ?: string;
|
||||
code ?: string;
|
||||
uuid ?: string;
|
||||
clientId : string = "";
|
||||
grantType : string = "";
|
||||
}
|
||||
|
||||
/**
|
||||
* 登录响应
|
||||
*/
|
||||
export type LoginResult {
|
||||
access_token : string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 验证码返回
|
||||
*/
|
||||
export type VerifyCodeResult = {
|
||||
captchaEnabled : boolean
|
||||
uuid : string
|
||||
img : string
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页返回结果
|
||||
*/
|
||||
export interface PageResult<T = any> {
|
||||
total : number;
|
||||
rows : T[];
|
||||
}
|
||||
Reference in New Issue
Block a user