1
This commit is contained in:
@@ -11,30 +11,6 @@ type ShopBatchCreateStoreRequest struct {
|
||||
Param *ShopBatchCreateStoreParam
|
||||
}
|
||||
|
||||
type ShopBatchCreateStoreParam struct {
|
||||
StoreList []*StoreList `json:"store_list"`
|
||||
}
|
||||
|
||||
type StoreList struct {
|
||||
RowID int64 `json:"row_id"`
|
||||
Name string `json:"name"`
|
||||
StoreCode string `json:"store_code"` //门店编码
|
||||
Longitude string `json:"longitude"` //经度
|
||||
Latitude string `json:"latitude"` //纬度
|
||||
Province string `json:"province"` //省份
|
||||
City string `json:"city"` //市
|
||||
District string `json:"district"` //区
|
||||
Address string `json:"address"` //详细地址
|
||||
Contact string `json:"contact"` //联系方式
|
||||
OpenTime OpenTime `json:"open_time"` //营业时间
|
||||
StoreID int64 `json:"store_id"` //创建成功的门店ID
|
||||
}
|
||||
|
||||
type OpenTime struct {
|
||||
DayMap map[string]string `json:"day_map"`
|
||||
Custom string `json:"custom"` //暂时不使用
|
||||
}
|
||||
|
||||
func (c *ShopBatchCreateStoreRequest) GetUrlPath() string {
|
||||
return "/shop/batchCreateStore"
|
||||
}
|
||||
@@ -46,6 +22,7 @@ func New() *ShopBatchCreateStoreRequest {
|
||||
request.SetConfig(doudian_sdk.GlobalConfig)
|
||||
request.SetClient(doudian_sdk.DefaultDoudianOpApiClient)
|
||||
return request
|
||||
|
||||
}
|
||||
|
||||
func (c *ShopBatchCreateStoreRequest) Execute(accessToken *doudian_sdk.AccessToken) (*shop_batchCreateStore_response.ShopBatchCreateStoreResponse, error) {
|
||||
@@ -56,7 +33,9 @@ func (c *ShopBatchCreateStoreRequest) Execute(accessToken *doudian_sdk.AccessTok
|
||||
response := &shop_batchCreateStore_response.ShopBatchCreateStoreResponse{}
|
||||
_ = json.Unmarshal([]byte(responseJson), response)
|
||||
return response, nil
|
||||
|
||||
}
|
||||
|
||||
func (c *ShopBatchCreateStoreRequest) GetParamObject() interface{} {
|
||||
return c.Param
|
||||
}
|
||||
@@ -64,3 +43,36 @@ func (c *ShopBatchCreateStoreRequest) GetParamObject() interface{} {
|
||||
func (c *ShopBatchCreateStoreRequest) GetParams() *ShopBatchCreateStoreParam {
|
||||
return c.Param
|
||||
}
|
||||
|
||||
type ShopBatchCreateStoreParam struct {
|
||||
// 与createStore接口入参一致
|
||||
StoreList []StoreListItem `json:"store_list"`
|
||||
}
|
||||
type OpenTime struct {
|
||||
// Key:用数字表示周几,例:1:周一、2:周一、5:周五、6:周六、7:周日。Value: 营业时间,例:“x-x”。x的区间:[00:00, 23:59](24:00无效)。营业到次日举例:"19:00-02:00"。完整举例(周3周4不营业):{1:"12:00-16:00",2:"12:00-16:00",5:"19:00-02:00",6:"12:00-16:00",7:"12:00-16:00"}
|
||||
DayMap map[int64]string `json:"day_map"`
|
||||
}
|
||||
type StoreListItem struct {
|
||||
// 标识这行数据
|
||||
RowId int64 `json:"row_id"`
|
||||
// 门店名称
|
||||
Name string `json:"name"`
|
||||
// 门店编码
|
||||
StoreCode string `json:"store_code"`
|
||||
// 经度
|
||||
Longitude string `json:"longitude"`
|
||||
// 纬度
|
||||
Latitude string `json:"latitude"`
|
||||
// 省份
|
||||
Province string `json:"province"`
|
||||
// 市
|
||||
City string `json:"city"`
|
||||
// 区
|
||||
District string `json:"district"`
|
||||
// 详细地址
|
||||
Address string `json:"address"`
|
||||
// 电话
|
||||
Contact string `json:"contact"`
|
||||
// Key:用数字表示周几,例:1:周一、2:周一、5:周五、6:周六、7:周日。Value: 营业时间,例:“x-x”。x的区间:[00:00, 23:59](24:00无效)。营业到次日举例:"19:00-02:00"。完整举例(周3周4不营业):{1:"12:00-16:00",2:"12:00-16:00",5:"19:00-02:00",6:"12:00-16:00",7:"12:00-16:00"}
|
||||
OpenTime *OpenTime `json:"open_time"`
|
||||
}
|
||||
|
||||
@@ -1,29 +1,56 @@
|
||||
package shop_batchCreateStore_response
|
||||
|
||||
import doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
import (
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type ShopBatchCreateStoreResponse struct {
|
||||
doudian_sdk.BaseDoudianOpApiResponse
|
||||
Data *ShopBatchCreateStoreData `json:"data"`
|
||||
}
|
||||
type DataItem struct {
|
||||
RowID int `json:"row_id"`
|
||||
Name string `json:"name"`
|
||||
StoreCode string `json:"store_code"` //门店编码
|
||||
Longitude string `json:"longitude"` //经度
|
||||
Latitude string `json:"latitude"` //纬度
|
||||
Province string `json:"province"` //省份
|
||||
City string `json:"city"` //市
|
||||
District string `json:"district"` //区
|
||||
Address string `json:"address"` //详细地址
|
||||
Contact string `json:"contact"` //联系方式
|
||||
OpenTime OpenTime `json:"open_time"` //营业时间
|
||||
}
|
||||
|
||||
type OpenTime struct {
|
||||
DayMap map[string]string `json:"day_map"`
|
||||
Custom string `json:"custom"` //暂时不使用
|
||||
// -
|
||||
DayMap map[int64]string `json:"day_map"`
|
||||
// -
|
||||
Custom string `json:"custom"`
|
||||
}
|
||||
type Store struct {
|
||||
// -
|
||||
RowId int64 `json:"row_id"`
|
||||
// -
|
||||
Name string `json:"name"`
|
||||
// -
|
||||
RelShopId int64 `json:"rel_shop_id"`
|
||||
// -
|
||||
StoreCode string `json:"store_code"`
|
||||
// -
|
||||
Longitude string `json:"longitude"`
|
||||
// -
|
||||
Latitude string `json:"latitude"`
|
||||
// -
|
||||
Province string `json:"province"`
|
||||
// -
|
||||
City string `json:"city"`
|
||||
// -
|
||||
District string `json:"district"`
|
||||
// -
|
||||
Address string `json:"address"`
|
||||
// -
|
||||
Contact string `json:"contact"`
|
||||
// -
|
||||
OpenTime *OpenTime `json:"open_time"`
|
||||
// 创建成功的门店ID
|
||||
StoreId int64 `json:"store_id"`
|
||||
}
|
||||
type ResultListItem struct {
|
||||
// 是否成功
|
||||
IsSuccess bool `json:"is_success"`
|
||||
// 错误描述
|
||||
Msg string `json:"msg"`
|
||||
// 提交过来的信息
|
||||
Store *Store `json:"store"`
|
||||
}
|
||||
type ShopBatchCreateStoreData struct {
|
||||
Data []DataItem `json:"data"`
|
||||
// 结果
|
||||
ResultList []ResultListItem `json:"result_list"`
|
||||
}
|
||||
|
||||
@@ -3,8 +3,6 @@ package shop_bindStoreSaleLimit_request
|
||||
import (
|
||||
"encoding/json"
|
||||
shop_bindStoreSaleLimit_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/shop_bindStoreSaleLimit/response"
|
||||
|
||||
//shop_bindStoreSaleLimit_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/shop_bindStoreSaleLimit/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
@@ -13,15 +11,6 @@ type ShopBindStoreSaleLimitRequest struct {
|
||||
Param *ShopBindStoreSaleLimitParam
|
||||
}
|
||||
|
||||
type ShopBindStoreSaleLimitParam struct {
|
||||
StoreID int64 `json:"store_id"` //创建成功的门店ID
|
||||
SaleLimitID int64 `json:"sale_limit_id"` //限售模板ID
|
||||
}
|
||||
type OpenTime struct {
|
||||
DayMap map[string]string `json:"day_map"`
|
||||
Custom string `json:"custom"` //暂时不使用
|
||||
}
|
||||
|
||||
func (c *ShopBindStoreSaleLimitRequest) GetUrlPath() string {
|
||||
return "/shop/bindStoreSaleLimit"
|
||||
}
|
||||
@@ -33,6 +22,7 @@ func New() *ShopBindStoreSaleLimitRequest {
|
||||
request.SetConfig(doudian_sdk.GlobalConfig)
|
||||
request.SetClient(doudian_sdk.DefaultDoudianOpApiClient)
|
||||
return request
|
||||
|
||||
}
|
||||
|
||||
func (c *ShopBindStoreSaleLimitRequest) Execute(accessToken *doudian_sdk.AccessToken) (*shop_bindStoreSaleLimit_response.ShopBindStoreSaleLimitResponse, error) {
|
||||
@@ -43,7 +33,9 @@ func (c *ShopBindStoreSaleLimitRequest) Execute(accessToken *doudian_sdk.AccessT
|
||||
response := &shop_bindStoreSaleLimit_response.ShopBindStoreSaleLimitResponse{}
|
||||
_ = json.Unmarshal([]byte(responseJson), response)
|
||||
return response, nil
|
||||
|
||||
}
|
||||
|
||||
func (c *ShopBindStoreSaleLimitRequest) GetParamObject() interface{} {
|
||||
return c.Param
|
||||
}
|
||||
@@ -51,3 +43,10 @@ func (c *ShopBindStoreSaleLimitRequest) GetParamObject() interface{} {
|
||||
func (c *ShopBindStoreSaleLimitRequest) GetParams() *ShopBindStoreSaleLimitParam {
|
||||
return c.Param
|
||||
}
|
||||
|
||||
type ShopBindStoreSaleLimitParam struct {
|
||||
// 门店ID
|
||||
StoreId int64 `json:"store_id"`
|
||||
// 限售模版ID
|
||||
SaleLimitId int64 `json:"sale_limit_id"`
|
||||
}
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
package shop_bindStoreSaleLimit_response
|
||||
|
||||
import doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
import (
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type ShopBindStoreSaleLimitResponse struct {
|
||||
doudian_sdk.BaseDoudianOpApiResponse
|
||||
Data *ShopBindStoreSaleLimitData `json:"data"`
|
||||
}
|
||||
|
||||
type ShopBindStoreSaleLimitData struct {
|
||||
}
|
||||
|
||||
@@ -10,24 +10,6 @@ type ShopEditStoreRequest struct {
|
||||
doudian_sdk.BaseDoudianOpApiRequest
|
||||
Param *ShopEditStoreParam
|
||||
}
|
||||
type ShopEditStoreParam struct {
|
||||
RowID int64 `json:"row_id"`
|
||||
Name string `json:"name"`
|
||||
StoreCode string `json:"store_code"` //门店编码
|
||||
Longitude string `json:"longitude"` //经度
|
||||
Latitude string `json:"latitude"` //纬度
|
||||
Province string `json:"province"` //省份
|
||||
City string `json:"city"` //市
|
||||
District string `json:"district"` //区
|
||||
Address string `json:"address"` //详细地址
|
||||
Contact string `json:"contact"` //联系方式
|
||||
OpenTime OpenTime `json:"open_time"` //营业时间
|
||||
StoreID int64 `json:"store_id"` //创建成功的门店ID
|
||||
}
|
||||
type OpenTime struct {
|
||||
DayMap map[string]string `json:"day_map"`
|
||||
Custom string `json:"custom"` //暂时不使用
|
||||
}
|
||||
|
||||
func (c *ShopEditStoreRequest) GetUrlPath() string {
|
||||
return "/shop/editStore"
|
||||
@@ -51,6 +33,7 @@ func (c *ShopEditStoreRequest) Execute(accessToken *doudian_sdk.AccessToken) (*s
|
||||
response := &shop_editStore_response.ShopEditStoreResponse{}
|
||||
_ = json.Unmarshal([]byte(responseJson), response)
|
||||
return response, nil
|
||||
|
||||
}
|
||||
|
||||
func (c *ShopEditStoreRequest) GetParamObject() interface{} {
|
||||
@@ -60,3 +43,32 @@ func (c *ShopEditStoreRequest) GetParamObject() interface{} {
|
||||
func (c *ShopEditStoreRequest) GetParams() *ShopEditStoreParam {
|
||||
return c.Param
|
||||
}
|
||||
|
||||
type OpenTime struct {
|
||||
// 营业时间
|
||||
DayMap map[int64]string `json:"day_map"`
|
||||
}
|
||||
type ShopEditStoreParam struct {
|
||||
// 门店ID
|
||||
StoreId int64 `json:"store_id"`
|
||||
// 门店名
|
||||
Name string `json:"name"`
|
||||
// 自用编码
|
||||
StoreCode string `json:"store_code"`
|
||||
// 经度
|
||||
Longitude string `json:"longitude"`
|
||||
// 纬度
|
||||
Latitude string `json:"latitude"`
|
||||
// 省
|
||||
Province string `json:"province"`
|
||||
// 市
|
||||
City string `json:"city"`
|
||||
// 区
|
||||
District string `json:"district"`
|
||||
// 详细地址
|
||||
Address string `json:"address"`
|
||||
// 电话
|
||||
Contact string `json:"contact"`
|
||||
// 营业时间
|
||||
OpenTime *OpenTime `json:"open_time"`
|
||||
}
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package shop_editStore_response
|
||||
|
||||
import doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
import (
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type ShopEditStoreResponse struct {
|
||||
doudian_sdk.BaseDoudianOpApiResponse
|
||||
|
||||
@@ -10,10 +10,6 @@ type ShopStoreSuspendRequest struct {
|
||||
doudian_sdk.BaseDoudianOpApiRequest
|
||||
Param *ShopStoreSuspendParam
|
||||
}
|
||||
type ShopStoreSuspendParam struct {
|
||||
StoreID int64 `json:"store_id"` //门店ID
|
||||
Reason string `json:"reason"` //停业原因
|
||||
}
|
||||
|
||||
func (c *ShopStoreSuspendRequest) GetUrlPath() string {
|
||||
return "/shop/storeSuspend"
|
||||
@@ -37,6 +33,7 @@ func (c *ShopStoreSuspendRequest) Execute(accessToken *doudian_sdk.AccessToken)
|
||||
response := &shop_storeSuspend_response.ShopStoreSuspendResponse{}
|
||||
_ = json.Unmarshal([]byte(responseJson), response)
|
||||
return response, nil
|
||||
|
||||
}
|
||||
|
||||
func (c *ShopStoreSuspendRequest) GetParamObject() interface{} {
|
||||
@@ -46,3 +43,10 @@ func (c *ShopStoreSuspendRequest) GetParamObject() interface{} {
|
||||
func (c *ShopStoreSuspendRequest) GetParams() *ShopStoreSuspendParam {
|
||||
return c.Param
|
||||
}
|
||||
|
||||
type ShopStoreSuspendParam struct {
|
||||
// 门店ID
|
||||
StoreId int64 `json:"store_id"`
|
||||
// 停业原因
|
||||
Reason string `json:"reason"`
|
||||
}
|
||||
|
||||
@@ -1,10 +1,16 @@
|
||||
package shop_storeSuspend_response
|
||||
|
||||
import doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
import (
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type ShopStoreSuspendResponse struct {
|
||||
doudian_sdk.BaseDoudianOpApiResponse
|
||||
Data *ShopStoreSuspendData `json:"data"`
|
||||
}
|
||||
type ShopStoreSuspendData struct {
|
||||
// 返回错误码
|
||||
RetCode int64 `json:"ret_code"`
|
||||
// -
|
||||
RetMsg string `json:"ret_msg"`
|
||||
}
|
||||
|
||||
@@ -10,10 +10,6 @@ type ShopUnsuspendStoreRequest struct {
|
||||
doudian_sdk.BaseDoudianOpApiRequest
|
||||
Param *ShopUnsuspendStoreParam
|
||||
}
|
||||
type ShopUnsuspendStoreParam struct {
|
||||
StoreID int64 `json:"store_id"` //门店ID
|
||||
Reason string `json:"reason"` //停业原因
|
||||
}
|
||||
|
||||
func (c *ShopUnsuspendStoreRequest) GetUrlPath() string {
|
||||
return "/shop/unsuspendStore"
|
||||
@@ -37,6 +33,7 @@ func (c *ShopUnsuspendStoreRequest) Execute(accessToken *doudian_sdk.AccessToken
|
||||
response := &shop_unsuspendStore_response.ShopUnsuspendStoreResponse{}
|
||||
_ = json.Unmarshal([]byte(responseJson), response)
|
||||
return response, nil
|
||||
|
||||
}
|
||||
|
||||
func (c *ShopUnsuspendStoreRequest) GetParamObject() interface{} {
|
||||
@@ -46,3 +43,10 @@ func (c *ShopUnsuspendStoreRequest) GetParamObject() interface{} {
|
||||
func (c *ShopUnsuspendStoreRequest) GetParams() *ShopUnsuspendStoreParam {
|
||||
return c.Param
|
||||
}
|
||||
|
||||
type ShopUnsuspendStoreParam struct {
|
||||
// 门店ID
|
||||
StoreId int64 `json:"store_id"`
|
||||
// 恢复营业原因
|
||||
Reason string `json:"reason"`
|
||||
}
|
||||
|
||||
@@ -1,10 +1,16 @@
|
||||
package shop_unsuspendStore_response
|
||||
|
||||
import doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
import (
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type ShopUnsuspendStoreResponse struct {
|
||||
doudian_sdk.BaseDoudianOpApiResponse
|
||||
Data *ShopUnsuspendStoreData `json:"data"`
|
||||
}
|
||||
type ShopUnsuspendStoreData struct {
|
||||
// 返回错误码
|
||||
RetCode int64 `json:"ret_code"`
|
||||
// -
|
||||
RetMsg string `json:"ret_msg"`
|
||||
}
|
||||
|
||||
@@ -11,29 +11,6 @@ type TradeCreateTradeLimitTemplateRequest struct {
|
||||
Param *TradeCreateTradeLimitTemplateParam
|
||||
}
|
||||
|
||||
type TradeCreateTradeLimitTemplateParam struct {
|
||||
StoreID int64 `json:"store_id"` //门店ID
|
||||
TradeLimitRuleRequestList []*TradeLimitRuleRequestList `json:"trade_limit_rule_request_list"` //限购参数
|
||||
TradeLimitResourceObject TradeLimitResourceObject `json:"trade_limit_resource_object"` //限购资源值
|
||||
TradeLimitPattern TradeLimitPattern `json:"trade_limit_pattern"` //限购值,模型为重量则单位为毫克,模型为金额则单位为分
|
||||
TimePeriod TimePeriod `json:"time_period"` //限购时间
|
||||
}
|
||||
type TradeLimitRuleRequestList struct {
|
||||
TradeLimitModel int32 `json:"trade_limit_model"` //限购模型 1-重量,2-数量,3-地区,4-金额
|
||||
TradeLimitResource int32 `json:"trade_limit_resource"` //限购资源类别1-抖店,2-门店,3-商品ID,4-sku,5-类目,6-活动,7-商品标
|
||||
}
|
||||
type TradeLimitResourceObject struct {
|
||||
TradeLimitResourceIDList []string `json:"trade_limit_resource_id_list"` //限购资源值列表
|
||||
}
|
||||
type TradeLimitPattern struct {
|
||||
Minimum int64 `json:"minimum"` //单次下限
|
||||
Maximum int64 `json:"maximum"` //单次上限
|
||||
CumulativeMax int64 `json:"cumulative_max"` //累计限购值
|
||||
}
|
||||
type TimePeriod struct {
|
||||
TradeLimitSubjectList []int64 `json:"trade_limit_subject_list"` //限购维度1 // 端用户(比如uid=122,aid=1128) 2 // 用户组用户(比如uid=122,group=aweme) 3 // 设备 4 // 下单电话 5 // 收件电话 6 // 身份证号 7 // 支付账号
|
||||
}
|
||||
|
||||
func (c *TradeCreateTradeLimitTemplateRequest) GetUrlPath() string {
|
||||
return "/trade/createTradeLimitTemplate"
|
||||
}
|
||||
@@ -45,6 +22,7 @@ func New() *TradeCreateTradeLimitTemplateRequest {
|
||||
request.SetConfig(doudian_sdk.GlobalConfig)
|
||||
request.SetClient(doudian_sdk.DefaultDoudianOpApiClient)
|
||||
return request
|
||||
|
||||
}
|
||||
|
||||
func (c *TradeCreateTradeLimitTemplateRequest) Execute(accessToken *doudian_sdk.AccessToken) (*trade_createTradeLimitTemplate_response.TradeCreateTradeLimitTemplateResponse, error) {
|
||||
@@ -55,7 +33,9 @@ func (c *TradeCreateTradeLimitTemplateRequest) Execute(accessToken *doudian_sdk.
|
||||
response := &trade_createTradeLimitTemplate_response.TradeCreateTradeLimitTemplateResponse{}
|
||||
_ = json.Unmarshal([]byte(responseJson), response)
|
||||
return response, nil
|
||||
|
||||
}
|
||||
|
||||
func (c *TradeCreateTradeLimitTemplateRequest) GetParamObject() interface{} {
|
||||
return c.Param
|
||||
}
|
||||
@@ -63,3 +43,46 @@ func (c *TradeCreateTradeLimitTemplateRequest) GetParamObject() interface{} {
|
||||
func (c *TradeCreateTradeLimitTemplateRequest) GetParams() *TradeCreateTradeLimitTemplateParam {
|
||||
return c.Param
|
||||
}
|
||||
|
||||
type TradeLimitPattern struct {
|
||||
// 单次下限
|
||||
Minimum int64 `json:"minimum"`
|
||||
// 单次上限
|
||||
Maximum int64 `json:"maximum"`
|
||||
// 累计限购值
|
||||
CumulativeMax int64 `json:"cumulative_max"`
|
||||
}
|
||||
type TimePeriod struct {
|
||||
// 限购开始时间
|
||||
StartTime int64 `json:"start_time"`
|
||||
// 限购结束时间
|
||||
EndTime int64 `json:"end_time"`
|
||||
// 限购滑动窗口时长
|
||||
LimitPeriod int64 `json:"limit_period"`
|
||||
// 限购滑动窗口结束时间
|
||||
LimitPeriodEndTime int64 `json:"limit_period_end_time"`
|
||||
}
|
||||
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 // 支付账号
|
||||
TradeLimitSubjectList []int32 `json:"trade_limit_subject_list"`
|
||||
}
|
||||
type TradeCreateTradeLimitTemplateParam struct {
|
||||
// 门店ID
|
||||
StoreId int64 `json:"store_id"`
|
||||
// 限购参数
|
||||
TradeLimitRuleRequestList []TradeLimitRuleRequestListItem `json:"trade_limit_rule_request_list"`
|
||||
}
|
||||
type TradeLimitResourceObject struct {
|
||||
// 限购资源值列表
|
||||
TradeLimitResourceIdList []string `json:"trade_limit_resource_id_list"`
|
||||
}
|
||||
|
||||
@@ -1,11 +1,14 @@
|
||||
package trade_createTradeLimitTemplate_response
|
||||
|
||||
import doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
import (
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type TradeCreateTradeLimitTemplateResponse struct {
|
||||
doudian_sdk.BaseDoudianOpApiResponse
|
||||
Data *TradeCreateTradeLimitTemplateData `json:"data"`
|
||||
}
|
||||
type TradeCreateTradeLimitTemplateData struct {
|
||||
TradeLimitID int64 `json:"trade_limit_id"` //限购模板ID
|
||||
// 限购模板ID
|
||||
TradeLimitId int64 `json:"trade_limit_id"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user