active.pay.go 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. package models
  2. type PendingCancelAmountRequest struct {
  3. OpenId string `json:"open_id"`
  4. Type int `json:"type"` //1-商家 2-客户
  5. }
  6. type PendingCancelAmountReply struct {
  7. Amount string `json:"amount"`
  8. }
  9. type GetGroupBuyPayRequest struct {
  10. OpenId string `json:"open_id"`
  11. PageSize int `json:"page_size"`
  12. PageIndex int `json:"page_index"`
  13. //UserType int `json:"user_type"` //1-商家 2-c端客户
  14. //GroupBuyType int `json:"group_buy_type"` //1-待核销 2-已核销
  15. }
  16. type GetGroupBuyPayReply struct {
  17. ActiveId int64 `json:"active_id"` //活动id
  18. ActiveName string `json:"active_name"` //活动名称
  19. GroupBuyName string `json:"group_buy_name"` //拼团名称
  20. Amount string `json:"amount"` //交易金额
  21. MerchantAmount string `json:"merchant_amount"` //商家分账金额
  22. ClientAmount string `json:"client_amount"` //客户分销金额
  23. PayTime string `json:"pay_time"` //支付时间
  24. TradeNo string `json:"trade_no"` //交易ID
  25. TotalCancelNum int `json:"total_cancel_num"` //总核销次数
  26. PendingCancelNum int `json:"pending_cancel_num"` //待核销次数
  27. Url string `json:"url"` //url
  28. }
  29. type GroupBuyPayCodeRequest struct {
  30. TradeNo string `json:"trade_no"` //交易ID
  31. }
  32. type GroupBuyPayCodeReply struct {
  33. Key string `json:"key"` //key
  34. TradeNo string `json:"trade_no"` //交易ID
  35. }
  36. type GroupBuyCancelInfoRequest struct {
  37. Key string `json:"key"` //key
  38. TradeNo string `json:"trade_no"` //交易ID
  39. }
  40. type GroupBuyCancelInfoReply struct {
  41. ActiveId int64 `json:"active_id"` //活动id
  42. ActiveName string `json:"active_name"` //活动名称
  43. GroupBuyName string `json:"group_buy_name"` //拼团名称
  44. Amount string `json:"amount"` //交易金额
  45. MerchantAmount string `json:"merchant_amount"` //商家金额
  46. ClientAmount string `json:"client_amount"` //客户金额
  47. PayTime string `json:"pay_time"` //支付时间
  48. TradeNo string `json:"trade_no"` //交易ID
  49. GroupBuyProject []CancelGroupBuyProject `json:"group_buy_project"` //拼团项目
  50. }
  51. type CancelGroupBuyProject struct {
  52. ProjectName string `json:"project_name"`
  53. TotalCancelNum int `json:"total_cancel_num"` //总核销数量
  54. PendingCancelNum int `json:"pending_cancel_num"` //待核销数量
  55. ID int64 `json:"id"`
  56. }
  57. type GroupBuyCancelRequest struct {
  58. Key string `json:"key"` //key
  59. TradeNo string `json:"trade_no"` //交易ID
  60. GroupBuyProject []PendingCancelGroupBuyProject `json:"group_buy_project"` //拼团项目
  61. OpenId string `json:"open_id"` //核销人员
  62. }
  63. type GroupBuyCancelReply struct {
  64. }
  65. type PendingCancelGroupBuyProject struct {
  66. CancelNum int `json:"cancel_num"` //数量
  67. ID int64 `json:"id"`
  68. }