active.pay.go 2.8 KB

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