Files

52 lines
739 B
Plaintext

/**
* 注册
*/
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[];
}