This commit is contained in:
邹宗楠
2025-05-07 11:54:16 +08:00
parent a747df1357
commit 2c3b478b94
2 changed files with 20 additions and 0 deletions

View File

@@ -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"` // 当前商品是否是大件商品
}

View File

@@ -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: // 京西速食