54 lines
2.9 KiB
Go
54 lines
2.9 KiB
Go
package tao_vegetable
|
||
|
||
const (
|
||
TerminalsAPP = 1 //活动终端app
|
||
TerminalsPOS = 2 //活动终端pos
|
||
DiscountTypeDeductMoney = 1 //减钱
|
||
DiscountTypeOnePrice = 2 //一口价
|
||
DiscountTypeDiscounts = 3 //打折
|
||
LimitCntMax = 9999 //活动总限购默认值
|
||
|
||
MemberCrowdCodeNewUser = "NEW_USER" //新用户
|
||
MemberCrowdCodeOldUser = "OLD_USER" //老用户
|
||
MemberCrowdCodeLightNewUser = "LIGHT_NEW_USER" //闪购新客
|
||
MemberCrowdCodeMerchantNewUser = "MERCHANT_NEW_USER" //商家新用户
|
||
MemberCrowdCodeMerchantOldUser = "MERCHANT_OLD_USER" //商家老用户
|
||
|
||
ChannelsMT = 2
|
||
ChannelsELM = 3
|
||
ChannelsJDDJ = 4
|
||
ChannelsTXD = 31 //翱象淘鲜达
|
||
ChannelsShareStock = 32
|
||
)
|
||
|
||
var (
|
||
DefaultCurrent = int64(1)
|
||
DefaultPageSize = int64(20)
|
||
)
|
||
|
||
type QueryActResp struct {
|
||
DiscountType int64 `json:"discount_type,omitempty" ` //单品活动类型1:减钱 2:一口价 3:打折
|
||
OutActId string `json:"out_act_id,omitempty" ` //外部订单号
|
||
ActId int64 `json:"act_id,omitempty" ` //营销活动ID
|
||
ActivityName string `json:"activity_name,omitempty" ` //活动名称
|
||
Description string `json:"description,omitempty" ` //活动描述
|
||
StartTime int64 `json:"start_time,omitempty" ` //活动开始时间
|
||
EndTime int64 `json:"end_time,omitempty" ` //活动结束时间
|
||
Weekdays []int64 `json:"weekdays,omitempty" ` //活动周几生效
|
||
EveryDayPeriods []string `json:"every_day_periods,omitempty" ` //活动每天生效时间段
|
||
Terminals []int32 `json:"terminals,omitempty" ` //优惠适用场景:1:APP 2:POS
|
||
CreatorId string `json:"creator_id,omitempty" ` //操作人ID
|
||
CreatorName string `json:"creator_name,omitempty" ` //操作人姓名
|
||
StoreIds []string `json:"store_ids,omitempty" ` //门店列表
|
||
OuterStoreIds []string `json:"outer_store_ids,omitempty" ` //外部门店列表
|
||
MemberCrowdCodes []string `json:"member_crowd_codes,omitempty" ` //人群编码,saas平台人群编码:NEW_USER: 新用户, OLD_USER:老用户,LIGHT_NEW_USER:闪购新客
|
||
Limit ActivityQueryLimit `json:"limit,omitempty" ` //限购信息
|
||
}
|
||
type ActivityQueryLimit struct {
|
||
TotalLimitCnt int64 `json:"total_limit_cnt,omitempty" ` //活动总限购
|
||
DailyTotalLimitCnt int64 `json:"daily_total_limit_cnt,omitempty" ` //每日总限购
|
||
UserTotalLimitCnt int64 `json:"user_total_limit_cnt,omitempty" ` //用户总限购
|
||
UserDailyLimitCnt int64 `json:"user_daily_limit_cnt,omitempty" ` //用户每日限购
|
||
OrderLimitCnt int64 `json:"order_limit_cnt,omitempty" ` //每单限购
|
||
}
|