mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-12-15 09:18:59 +08:00
40 lines
921 B
Go
40 lines
921 B
Go
package dto
|
|
|
|
type CaptchaResponse struct {
|
|
CaptchaID string `json:"captchaID"`
|
|
ImagePath string `json:"imagePath"`
|
|
}
|
|
|
|
type UserLoginInfo struct {
|
|
Name string `json:"name"`
|
|
Token string `json:"token"`
|
|
MfaStatus string `json:"mfaStatus"`
|
|
MfaSecret string `json:"mfaSecret"`
|
|
}
|
|
|
|
type MfaCredential struct {
|
|
Secret string `json:"secret"`
|
|
Code string `json:"code"`
|
|
}
|
|
|
|
type Login struct {
|
|
Name string `json:"name"`
|
|
Password string `json:"password"`
|
|
Captcha string `json:"captcha"`
|
|
CaptchaID string `json:"captchaID"`
|
|
AuthMethod string `json:"authMethod"`
|
|
}
|
|
|
|
type MFALogin struct {
|
|
Name string `json:"name"`
|
|
Password string `json:"password"`
|
|
Secret string `json:"secret"`
|
|
Code string `json:"code"`
|
|
AuthMethod string `json:"authMethod"`
|
|
}
|
|
|
|
type InitUser struct {
|
|
Name string `json:"name" validate:"required"`
|
|
Password string `json:"password" validate:"required"`
|
|
}
|