dy api修改
This commit is contained in:
@@ -44,6 +44,26 @@ func (c *TradeUpdateTradeLimitTemplateRequest) GetParams() *TradeUpdateTradeLimi
|
|||||||
return c.Param
|
return c.Param
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type TradeLimitRuleRequestListItem struct {
|
||||||
|
// 限购模型 1-重量,2-数量,3-地区,4-金额
|
||||||
|
TradeLimitModel int32 `json:"trade_limit_model"`
|
||||||
|
// 限购资源类别1-抖店,2-门店,3-商品ID,4-sku,5-类目,6-活动,7-商品标
|
||||||
|
TradeLimitResource int32 `json:"trade_limit_resource"`
|
||||||
|
// 限购资源值
|
||||||
|
//TradeLimitResourceObject *TradeLimitResourceObject `json:"trade_limit_resource_object"`
|
||||||
|
// 限购值,模型为重量则单位为毫克,模型为金额则单位为分
|
||||||
|
TradeLimitPattern *TradeLimitPattern `json:"trade_limit_pattern"`
|
||||||
|
// 限购时间
|
||||||
|
//TimePeriod *TimePeriod `json:"time_period"`
|
||||||
|
// 限购维度1 // 端用户(比如uid=122,aid=1128) 2 // 用户组用户(比如uid=122,group=aweme) 3 // 设备 4 // 下单电话 5 // 收件电话 6 // 身份证号 7 // 支付账号
|
||||||
|
TradeLimitSubjectLisit []int32 `json:"trade_limit_subject_lisit"`
|
||||||
|
}
|
||||||
|
type TradeUpdateTradeLimitTemplateParam struct {
|
||||||
|
// 限购模板ID
|
||||||
|
TradeLimitTemplateId int64 `json:"trade_limit_template_id"`
|
||||||
|
// 限购参数
|
||||||
|
TradeLimitRuleRequestList []TradeLimitRuleRequestListItem `json:"trade_limit_rule_request_list"`
|
||||||
|
}
|
||||||
type TradeLimitResourceObject struct {
|
type TradeLimitResourceObject struct {
|
||||||
// 限购资源值列表
|
// 限购资源值列表
|
||||||
TradeLimitResourceIdList []string `json:"trade_limit_resource_id_list"`
|
TradeLimitResourceIdList []string `json:"trade_limit_resource_id_list"`
|
||||||
@@ -52,9 +72,9 @@ type TradeLimitPattern struct {
|
|||||||
// 单次下限
|
// 单次下限
|
||||||
Minimum int64 `json:"minimum"`
|
Minimum int64 `json:"minimum"`
|
||||||
// 单次上限
|
// 单次上限
|
||||||
Maximum int64 `json:"maximum"`
|
//Maximum int64 `json:"maximum"`
|
||||||
// 累计限购值
|
// 累计限购值
|
||||||
CumulativeMax int64 `json:"cumulative_max"`
|
//CumulativeMax int64 `json:"cumulative_max"`
|
||||||
}
|
}
|
||||||
type TimePeriodFixed struct {
|
type TimePeriodFixed struct {
|
||||||
// 开始时间
|
// 开始时间
|
||||||
@@ -68,21 +88,3 @@ type TimePeriod struct {
|
|||||||
// 限购时间滑动窗口
|
// 限购时间滑动窗口
|
||||||
TimePeriodFixed *TimePeriodFixed `json:"time_period_fixed"`
|
TimePeriodFixed *TimePeriodFixed `json:"time_period_fixed"`
|
||||||
}
|
}
|
||||||
type TradeLimitRuleRequestListItem struct {
|
|
||||||
// 限购模型 1-重量,2-数量,3-地区,4-金额
|
|
||||||
TradeLimitModel int32 `json:"trade_limit_model"`
|
|
||||||
// 限购资源类别1-抖店,2-门店,3-商品ID,4-sku,5-类目,6-活动,7-商品标
|
|
||||||
TradeLimitResource int32 `json:"trade_limit_resource"`
|
|
||||||
// 限购资源值
|
|
||||||
TradeLimitResourceObject *TradeLimitResourceObject `json:"trade_limit_resource_object"`
|
|
||||||
// 限购值,模型为重量则单位为毫克,模型为金额则单位为分
|
|
||||||
TradeLimitPattern *TradeLimitPattern `json:"trade_limit_pattern"`
|
|
||||||
// 限购时间
|
|
||||||
TimePeriod *TimePeriod `json:"time_period"`
|
|
||||||
}
|
|
||||||
type TradeUpdateTradeLimitTemplateParam struct {
|
|
||||||
// 限购模板ID
|
|
||||||
TradeLimitTemplateId int64 `json:"trade_limit_template_id"`
|
|
||||||
// 限购参数
|
|
||||||
TradeLimitRuleRequestList []TradeLimitRuleRequestListItem `json:"trade_limit_rule_request_list"`
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user