- jdapi.BatchAddSku

This commit is contained in:
gazebo
2018-12-12 19:09:43 +08:00
parent 3d041588bc
commit c17d7d8030
2 changed files with 65 additions and 0 deletions

View File

@@ -148,3 +148,20 @@ func TestGetSpuSaleAttr(t *testing.T) {
}
t.Log(utils.Format4Output(result, false))
}
func TestBatchAddSku(t *testing.T) {
paramList := []*CreateByUpcParam{
&CreateByUpcParam{
Upc: "6948939649102",
OutSkuId: "50001",
Price: 213,
ShopCategoryId: 4247719,
IsSale: true,
},
}
result, err := jdapi.BatchAddSku(paramList)
if err != nil {
t.Fatal(err)
}
t.Log(utils.Format4Output(result, false))
}