model.go 424 B

123456789101112131415161718192021
  1. package model
  2. // const 常量
  3. const ()
  4. // WXToken 返回token
  5. type WXToken struct {
  6. Token string `json:"access_token"`
  7. Expires int `json:"expires_in"`
  8. }
  9. // WXTicket 返回ticket
  10. type WXTicket struct {
  11. Ticket string `json:"ticket"`
  12. }
  13. // TokenReq .
  14. type TokenReq struct {
  15. Noncestr string `json:"nonce" form:"nonce" validate:"required"`
  16. Timestamp string `json:"timestamp" form:"timestamp" validate:"required"`
  17. }