captcha.go 398 B

12345678910111213141516171819
  1. /*
  2. * @desc:验证码参数
  3. * @company:云南奇讯科技有限公司
  4. * @Author: yixiaohu
  5. * @Date: 2022/3/2 17:47
  6. */
  7. package common
  8. import "github.com/gogf/gf/v2/frame/g"
  9. type CaptchaReq struct {
  10. g.Meta `path:"/get" tags:"验证码" method:"get" summary:"获取验证码"`
  11. }
  12. type CaptchaRes struct {
  13. g.Meta `mime:"application/json"`
  14. Key string `json:"key"`
  15. Img string `json:"img"`
  16. }