captcha.go 532 B

123456789101112131415161718192021222324
  1. package model
  2. // var
  3. var (
  4. // Geetest captcha_type .
  5. Geetest = "gt"
  6. BiliCaptcha = "bili"
  7. )
  8. // ProcessRes geetest Captcha resp info.
  9. type ProcessRes struct {
  10. Success int8 `json:"success"`
  11. CaptchaID string `json:"gt"`
  12. Challenge string `json:"challenge"`
  13. NewCaptcha int `json:"new_captcha"`
  14. CaptchaType string `json:"type,omitempty"`
  15. Token string `json:"token,omitempty"`
  16. URL string `json:"url,omitempty"`
  17. }
  18. // ValidateRes info.
  19. type ValidateRes struct {
  20. Seccode string `json:"seccode"`
  21. }