params.go 879 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. package seller
  2. type notifyParam struct {
  3. TradeNo string `json:"out_trade_no"`
  4. TransactionId string `json:"transaction_id"`
  5. TradeState string `json:"trade_state"`
  6. Payer struct {
  7. Openid string `json:"openid"`
  8. } `json:"payer"`
  9. }
  10. type tradeRedis struct {
  11. Device string `json:"device"`
  12. Cell uint8 `json:"cell"`
  13. Wine uint16 `json:"wine"`
  14. Weight uint16 `json:"weight"`
  15. Cash int `json:"cash"`
  16. }
  17. type qrcodeParam struct {
  18. Id uint16 `json:"id"`
  19. Cell uint8 `json:"cell"`
  20. Weight uint16 `json:"weight"`
  21. Cash int `json:"cash"`
  22. }
  23. type authParam struct {
  24. Type string `json:"type"`
  25. Who string `json:"who"`
  26. Code string `json:"code"`
  27. }
  28. type resultParam struct {
  29. Type string `json:"type"`
  30. Who string `json:"who"`
  31. Result bool `json:"result"`
  32. }
  33. type finishParam struct {
  34. Type string `json:"type"`
  35. Who string `json:"who"`
  36. }