1
This commit is contained in:
@@ -232,4 +232,14 @@ type ProductAddV2Param struct {
|
||||
// 通过/product/getRecommendName接口推荐的商品标题前缀(注意系统根据类目属性生成前缀字符串时,末尾有一个空格)
|
||||
NamePrefix string `json:"name_prefix"`
|
||||
// 小时达专用
|
||||
// 售后服务新结构(老的after_sale_service中的字段后续会慢慢迁移到这里)
|
||||
AfterSaleServiceV2 *AfterSaleServiceV2 `json:"after_sale_service_v2"`
|
||||
}
|
||||
|
||||
type AfterSaleServiceV2 struct {
|
||||
ThreeGuarantees struct {
|
||||
Duration int64 `json:"duration"` // 售后天数
|
||||
ServiceType int64 `json:"service_type"` // 服务类型 1-寄修 2-延保
|
||||
}
|
||||
IsLargeProduct int64 `json:"is_large_product"` // 当前商品是否是大件商品
|
||||
}
|
||||
|
||||
@@ -120,6 +120,16 @@ func (a *API) GetCatePropertyV2(categoryLeftId int64) (*product_getCatePropertyV
|
||||
|
||||
// CreateStoreCommodity (新增总部商品)
|
||||
func (a *API) CreateStoreCommodity(skuParam *product_addV2_request.ProductAddV2Param) (*product_addV2_response.ProductAddV2Data, error) {
|
||||
skuParam.AfterSaleServiceV2 = &product_addV2_request.AfterSaleServiceV2{
|
||||
ThreeGuarantees: struct {
|
||||
Duration int64 `json:"duration"`
|
||||
ServiceType int64 `json:"service_type"`
|
||||
}{
|
||||
Duration: 7,
|
||||
ServiceType: 1,
|
||||
},
|
||||
IsLargeProduct: 0,
|
||||
}
|
||||
qualityList := make([]product_addV2_request.QualityListItem, 0, 0)
|
||||
switch a.accessTokenObj.ShopId {
|
||||
case TiktokFloderKeyVegetableKey: // 京西速食
|
||||
|
||||
Reference in New Issue
Block a user