1Panel/backend/app/dto/auth.go

41 lines
951 B
Go
Raw Normal View History

2022-11-21 15:20:04 +08:00
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"`
}
type MfaRequest struct {
Title string `json:"title"`
Interval int `json:"interval"`
}
2022-11-21 15:20:04 +08:00
type MfaCredential struct {
Secret string `json:"secret"`
Code string `json:"code"`
Interval string `json:"interval"`
2022-11-21 15:20:04 +08:00
}
type Login struct {
Name string `json:"name"`
Password string `json:"password"`
IgnoreCaptcha bool `json:"ignoreCaptcha"`
Captcha string `json:"captcha"`
CaptchaID string `json:"captchaID"`
AuthMethod string `json:"authMethod"`
Language string `json:"language"`
2022-11-21 15:20:04 +08:00
}
type MFALogin struct {
2023-03-06 17:57:45 +08:00
Name string `json:"name"`
Password string `json:"password"`
2022-11-21 15:20:04 +08:00
Code string `json:"code"`
AuthMethod string `json:"authMethod"`
}