+ jdapi.AddByStoreAndSkus
This commit is contained in:
@@ -244,3 +244,10 @@ func TestGetByOrderNoForOaos(t *testing.T) {
|
||||
t.Fatal(err.Error())
|
||||
}
|
||||
}
|
||||
|
||||
func TestCheckSelfPickCode(t *testing.T) {
|
||||
err := api.CheckSelfPickCode("", "921241806000842", "test")
|
||||
if err != nil {
|
||||
t.Fatal(err.Error())
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,6 +9,8 @@ import (
|
||||
const (
|
||||
MaxStoreSkuBatchSize = 50
|
||||
MaxStockQty = 100000000
|
||||
|
||||
MaxAddByStoreAndSkusCount = 30 // 批量置顶商品排序接口的最大个数
|
||||
)
|
||||
|
||||
type SkuPriceInfo struct {
|
||||
@@ -293,3 +295,14 @@ func (a *API) QueryStockCenter(outStationNo string, skuIds []*SkuIdEntity, userP
|
||||
}
|
||||
return vendibilityResponse, err
|
||||
}
|
||||
|
||||
// 批量置顶商品排序接口
|
||||
// https://opendj.jd.com/staticnew/widgets/resources.html?groupid=180&apiid=a7677f1a75984ed3a6ea3d4827f5a6b4
|
||||
func (a *API) AddByStoreAndSkus(stationNo int64, skuIDs []int64) (err error) {
|
||||
jdParams := map[string]interface{}{
|
||||
"storeId": stationNo,
|
||||
"skuIds": skuIDs,
|
||||
}
|
||||
_, err = a.AccessAPINoPage("OrgSortService/addByStoreAndSkus", jdParams, nil, nil, genNoPageResultParser("status", "message", "", "200"))
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user