params.go 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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 uint32 `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. Code string `json:"code"`
  26. UserType string `json:"user_type"`
  27. UserId string `json:"user_id"`
  28. }
  29. type resultParam struct {
  30. Type string `json:"type"`
  31. Result bool `json:"result"`
  32. UserType string `json:"user_type"`
  33. UserId string `json:"user_id"`
  34. }
  35. type finishParam struct {
  36. Type string `json:"type"`
  37. UserType string `json:"user_type"`
  38. UserId string `json:"user_id"`
  39. }
  40. type vipScanParam struct {
  41. Device string `json:"device"`
  42. Callback string `json:"callback"`
  43. }
  44. type vipCallbackParam struct {
  45. Device string `json:"device"`
  46. User string `json:"user"`
  47. Level uint8 `json:"level"`
  48. Desc string `json:"desc"`
  49. Discount uint8 `json:"discount"`
  50. Remain uint64 `json:"remain"`
  51. }
  52. type vipPayParam struct {
  53. User string `json:"user"`
  54. Cash uint32 `json:"cash"`
  55. Desc string `json:"desc"`
  56. }