1
This commit is contained in:
@@ -3,7 +3,6 @@ package mtwmapi
|
||||
import (
|
||||
"encoding/json"
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
"regexp"
|
||||
"strings"
|
||||
)
|
||||
@@ -624,22 +623,17 @@ func (a *API) RetailCatSkuBatchDelete2(trackInfo, poiCode string, catCodes, catN
|
||||
}
|
||||
|
||||
type SpuData struct {
|
||||
AppSpuCode string `json:"appSpuCode"` //商家中台系统里商品的编码
|
||||
SkuID string `json:"skuID"` //SKU码(商家的规格编码)
|
||||
PurchasePrice string `json:"purchasePrice"` //商品进货价
|
||||
AppSpuCode string `json:"app_spu_code"` //商家中台系统里商品的编码
|
||||
SkuID string `json:"sku_id"` //SKU码(商家的规格编码)
|
||||
PurchasePrice string `json:"purchase_price"` //商品进货价
|
||||
}
|
||||
|
||||
// https://opendj.meituan.com/home/docDetail/821
|
||||
// 【代运营】批量更新商品进货价 /retail/purchase/price/update
|
||||
func (a *API) BatchSetRestockingPrice(trackInfo, appPoiCode string, spuData []*SpuData) error {
|
||||
if len(spuData) > 0 {
|
||||
for _, v := range spuData {
|
||||
globals.SugarLogger.Debugf("BatchSetRestockingPrice params======%s %s %s", v.PurchasePrice, v.AppSpuCode, v.SkuID)
|
||||
}
|
||||
}
|
||||
_, err := a.AccessAPI2("/retail/purchase/price/update", false, map[string]interface{}{
|
||||
KeyAppPoiCode: appPoiCode,
|
||||
"spu_data": spuData,
|
||||
"spu_data": string(utils.MustMarshal(spuData)),
|
||||
}, resultKeyMsg, trackInfo)
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user