2022-11-21 15:20:04 +08:00
|
|
|
export namespace Login {
|
|
|
|
export interface ReqLoginForm {
|
|
|
|
name: string;
|
|
|
|
password: string;
|
2023-04-30 23:58:24 +08:00
|
|
|
ignoreCaptcha: boolean;
|
2022-11-21 15:20:04 +08:00
|
|
|
captcha: string;
|
|
|
|
captchaID: string;
|
|
|
|
authMethod: string;
|
|
|
|
}
|
|
|
|
export interface MFALoginForm {
|
|
|
|
name: string;
|
|
|
|
password: string;
|
|
|
|
code: string;
|
|
|
|
authMethod: string;
|
|
|
|
}
|
|
|
|
export interface ResLogin {
|
|
|
|
name: string;
|
|
|
|
token: string;
|
|
|
|
mfaStatus: string;
|
|
|
|
}
|
|
|
|
export interface ResCaptcha {
|
|
|
|
imagePath: string;
|
|
|
|
captchaID: string;
|
|
|
|
captchaLength: number;
|
|
|
|
}
|
|
|
|
export interface ResAuthButtons {
|
|
|
|
[propName: string]: any;
|
|
|
|
}
|
|
|
|
}
|