创建请求验证码和登录接口

This commit is contained in:
2026-06-07 11:26:28 +08:00
parent caf9038dfa
commit 78192a2f61
4 changed files with 166 additions and 0 deletions
+51
View File
@@ -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[];
}