diff --git a/platformapi/jdapi/store_sku_test.go b/platformapi/jdapi/store_sku_test.go index ba7655de..55e6fbf0 100644 --- a/platformapi/jdapi/store_sku_test.go +++ b/platformapi/jdapi/store_sku_test.go @@ -71,3 +71,37 @@ func TestUpdateVendibility(t *testing.T) { } baseapi.SugarLogger.Debug(utils.Format4Output(result, false)) } + +func TestUpdateVendorStationPrice(t *testing.T) { + result, err := api.UpdateVendorStationPrice("", "2", "", []*SkuPriceInfo{ + &SkuPriceInfo{ + OutSkuId: "02", + Price: 200, + }, + &SkuPriceInfo{ + OutSkuId: "01", + Price: 200, + }, + }) + if err != nil { + t.Fatal(err) + } + baseapi.SugarLogger.Debug(utils.Format4Output(result, false)) +} + +func TestBatchUpdateCurrentQtys(t *testing.T) { + result, err := api.BatchUpdateCurrentQtys("", "2", "", []*SkuStock{ + &SkuStock{ + OutSkuId: "01", + StockQty: 111, + }, + &SkuStock{ + OutSkuId: "2212", + StockQty: 111, + }, + }, "") + if err != nil { + t.Fatal(err) + } + baseapi.SugarLogger.Debug(utils.Format4Output(result, false)) +}