BatchUpdateOutSkuId
This commit is contained in:
@@ -99,6 +99,11 @@ type SkuIDPair struct {
|
||||
OutSkuId string `json:"outSkuId"`
|
||||
}
|
||||
|
||||
type BatchUpdateOutSkuIdFailedItem struct {
|
||||
Detail string `json:"detail"`
|
||||
SkuInfo *SkuIDPair `json:"skuInfo"`
|
||||
}
|
||||
|
||||
type BrandInfo struct {
|
||||
ID int `json:"id"`
|
||||
BrandName string `json:"brandName"`
|
||||
@@ -415,12 +420,13 @@ func (a *API) UpdateSku2(param *OpSkuParam) (skuID string, err error) {
|
||||
|
||||
// 根据到家商品编码批量更新商家商品编码接口
|
||||
// https://opendj.jd.com/staticnew/widgets/resources.html?groupid=180&apiid=4155d29bbdf649b69c67473b705ce7e7
|
||||
func (a *API) BatchUpdateOutSkuId(skuInfoList []*SkuIDPair) (retVal interface{}, err error) {
|
||||
func (a *API) BatchUpdateOutSkuId(skuInfoList []*SkuIDPair) (failedList []*BatchUpdateOutSkuIdFailedItem, err error) {
|
||||
result, err := a.AccessAPINoPage("pms/sku/batchUpdateOutSkuId", utils.Params2Map("skuInfoList", skuInfoList), nil, nil, nil)
|
||||
err2 := utils.Map2StructByJson(result, &failedList, false)
|
||||
if err == nil {
|
||||
return result, nil
|
||||
err = err2
|
||||
}
|
||||
return nil, err
|
||||
return failedList, err
|
||||
}
|
||||
|
||||
// 查询商家已上传商品信息列表接口
|
||||
|
||||
Reference in New Issue
Block a user