package app

import "time"

//RecaptchaRequest is ...
type RecaptchaRequest struct {
	Email    string `json:"email"`    // 邮件地址
	Response string `json:"response"` // 验证数据
}

type RecaptchaAndDrawRequest struct {
	Addr string `json:"addr" form:"addr"`
	Pid  int64 `json:"pid" form:"pid"`
	Pwd  string `json:"pwd" form:"pwd"`
	Response string `json:"response" form:"response"`
	Ty int64 `json:"ty" form:"ty"`
}

//RecaptchaResponse is ...
type RecaptchaResponse struct {
	Success     bool      `json:"success"`
	Score       float64   `json:"score"`
	Action      string    `json:"action"`
	ChallengeTS time.Time `json:"challenge_ts"`
	Hostname    string    `json:"hostname"`
	ErrorCodes  []string  `json:"error-codes"`
}

//RecaptchaResponseV2 is ...
type RecaptchaResponseV2 struct {
	Success     bool      `json:"success"`
	ChallengeTS time.Time `json:"challenge_ts"`
	Hostname    string    `json:"hostname"`
	ErrorCodes  []string  `json:"error-codes"`
}