|
@@ -23,18 +23,18 @@ type ActiveConfigRequest struct {
|
|
|
}
|
|
|
|
|
|
type ActiveConfigReply struct {
|
|
|
- MerchantName string `json:"merchant_name"` //商家名称
|
|
|
- DrawOneBiZhong int64 `json:"draw_one_bi_zhong"` //
|
|
|
- GroupBuyUrl string `json:"group_buy_url"` //
|
|
|
- GroupBuyMode int `json:"group_buy_mode"` // 0-不开团 1-虚拟开团 2-真实开团
|
|
|
- DrawMode int `json:"draw_mode"` //抽奖模式 0-不抽奖,1-盲盒
|
|
|
- ActivityEndTime string `json:"activity_end_time"` //活动结束时间
|
|
|
- ActivityStartTime string `json:"activity_start_time"` //活动开始时间
|
|
|
- ActiveName string `json:"active_name"` //活动名称
|
|
|
- BackgroundImage string `json:"background_image"` // 海报
|
|
|
- DrawNum int `json:"draw_num"` //抽奖次数
|
|
|
- DrawProduct []DrawProduct `json:"draw_product"` //中奖商品
|
|
|
- DrawGroupBuy []DrawGroupBuy `json:"draw_group_buy"` //活动拼团
|
|
|
+ MerchantName string `json:"merchant_name"` //商家名称
|
|
|
+ DrawOneBiZhong int64 `json:"draw_one_bi_zhong"` //
|
|
|
+ GroupBuyUrl string `json:"group_buy_url"` //
|
|
|
+ GroupBuyMode int `json:"group_buy_mode"` // 0-不开团 1-虚拟开团 2-真实开团
|
|
|
+ DrawMode int `json:"draw_mode"` //抽奖模式 0-不抽奖,1-盲盒
|
|
|
+ ActivityEndTime string `json:"activity_end_time"` //活动结束时间
|
|
|
+ ActivityStartTime string `json:"activity_start_time"` //活动开始时间
|
|
|
+ ActiveName string `json:"active_name"` //活动名称
|
|
|
+ BackgroundImage string `json:"background_image"` // 海报
|
|
|
+ DrawNum int `json:"draw_num"` //抽奖次数
|
|
|
+ DrawProduct []DrawProduct `json:"draw_product"` //中奖商品
|
|
|
+ DrawGroupBuy []DrawGroupBuyInfo `json:"draw_group_buy"` //活动拼团
|
|
|
}
|
|
|
|
|
|
type DrawProduct struct {
|
|
@@ -73,6 +73,28 @@ type GroupBuyProject struct {
|
|
|
CancelNum int `json:"cancel_num"`
|
|
|
}
|
|
|
|
|
|
+type DrawGroupBuyInfo struct {
|
|
|
+ GroupBuyId int64 `json:"group_buy_id"` //拼团id
|
|
|
+ GroupBuyName string `json:"group_buy_name"` // 拼团名
|
|
|
+ GroupBuyMode int `json:"group_buy_mode"` // 拼团模式 1-真实拼团 2-虚拟拼团
|
|
|
+ MerchantOpenID string `json:"merchant_open_id"` //
|
|
|
+ OriginalPrice decimal.Decimal `json:"original_price"` // 原价
|
|
|
+ GroupBuyOneNum int `json:"group_buy_one_num"` // 人数
|
|
|
+ GroupBuyOnePrice decimal.Decimal `json:"group_buy_one_price"` // 价格
|
|
|
+ GroupBuyTwoNum int `json:"group_buy_two_num"` // 人数
|
|
|
+ GroupBuyTwoPrice decimal.Decimal `json:"group_buy_two_price"` // 价格
|
|
|
+ GroupBuyThreeNum int `json:"group_buy_three_num"` //
|
|
|
+ GroupBuyThreePrice decimal.Decimal `json:"group_buy_three_price"` //
|
|
|
+ GroupBuyFourNum int `json:"group_buy_four_num"` //
|
|
|
+ GroupBuyFourPrice decimal.Decimal `json:"group_buy_four_price"` //
|
|
|
+ GroupBuyUrl string `json:"group_buy_url"` // 图片
|
|
|
+ ActivityEndTime string `json:"activity_end_time"` // 活动结束时间
|
|
|
+ ActivityStartTime string `json:"activity_start_time"` // 活动开始时间
|
|
|
+ RebateRate int `json:"rebate_rate"` // 佣金比例
|
|
|
+ MaxRebatePrice decimal.Decimal `json:"max_rebate_price"` //最大佣金
|
|
|
+ GroupBuyProject []GroupBuyProject `json:"group_buy_project"`
|
|
|
+}
|
|
|
+
|
|
|
type ActiveConfigListRequest struct {
|
|
|
OpenId string `json:"open_id"`
|
|
|
PageSize int `json:"page_size"`
|