active.group.buy.go 1.4 KB

12345678910111213141516171819202122232425
  1. package models
  2. import "github.com/shopspring/decimal"
  3. type CreateGroupBuyRequest struct {
  4. MerchantOpenId string `json:"merchant_open_id"`
  5. GroupBuyName string `json:"group_buy_name"` // 拼团名
  6. GroupBuyMode int `json:"group_buy_mode"` // 拼团模式 1-真实拼团 2-虚拟拼团
  7. OriginalPrice decimal.Decimal `json:"original_price"` // 原价
  8. GroupBuyOneNum int `json:"group_buy_one_num"` // 人数
  9. GroupBuyOnePrice decimal.Decimal `json:"group_buy_one_price"` // 价格
  10. GroupBuyTwoNum int `json:"group_buy_two_num"` // 人数
  11. GroupBuyTwoPrice decimal.Decimal `json:"group_buy_two_price"` // 价格
  12. GroupBuyThreeNum int `json:"group_buy_three_num"` //
  13. GroupBuyThreePrice decimal.Decimal `json:"group_buy_three_price"` //
  14. GroupBuyFourNum int `json:"group_buy_four_num"` //
  15. GroupBuyFourPrice decimal.Decimal `json:"group_buy_four_price"` //
  16. GroupBuyUrl string `json:"group_buy_url"` // 图片
  17. GroupBuyProject []CreateGroupBuyProject `json:"group_buy_project"`
  18. }
  19. type CreateGroupBuyProject struct {
  20. ProjectName string `json:"project_name"`
  21. CancelNum int `json:"cancel_num"`
  22. }