bilibili-backup/app/interface/main/answer/model/captcha.go
2019-04-22 02:59:20 +00:00

25 lines
532 B
Go

package model
// var
var (
// Geetest captcha_type .
Geetest = "gt"
BiliCaptcha = "bili"
)
// ProcessRes geetest Captcha resp info.
type ProcessRes struct {
Success int8 `json:"success"`
CaptchaID string `json:"gt"`
Challenge string `json:"challenge"`
NewCaptcha int `json:"new_captcha"`
CaptchaType string `json:"type,omitempty"`
Token string `json:"token,omitempty"`
URL string `json:"url,omitempty"`
}
// ValidateRes info.
type ValidateRes struct {
Seccode string `json:"seccode"`
}