yinbaoshangpinupdate

This commit is contained in:
苏尹岚
2020-03-27 17:10:50 +08:00
parent d372e3457c
commit cea0ff95cf
3 changed files with 197 additions and 2 deletions

View File

@@ -53,3 +53,26 @@ func TestLoadCategorysWithOption(t *testing.T) {
}
t.Log(utils.Format4Output(result, false))
}
func TestLoadProductsByPage(t *testing.T) {
result, err := api.LoadProductsByPage(MainStoreVendorOrgCode, "0000001")
if err != nil {
t.Fatal(err)
}
t.Log(utils.Format4Output(result, false))
}
func TestFindProduct(t *testing.T) {
result, err := api.FindProduct("7818179")
if err != nil {
t.Fatal(err)
}
t.Log(utils.Format4Output(result, false))
}
func TestSaveProduct(t *testing.T) {
err := api.SaveProduct(MainStoreVendorOrgCode, "0000001")
if err != nil {
t.Fatal(err)
}
}