- mtwm.RetailGet与ebai.SkuList用struct替换map

This commit is contained in:
gazebo
2019-05-30 17:01:52 +08:00
parent b890b9c4d0
commit 51713e54be
4 changed files with 142 additions and 29 deletions

View File

@@ -47,7 +47,15 @@ func TestRetailList(t *testing.T) {
if len(result) == 0 {
t.Fatal("should have items")
}
// t.Log(utils.Format4Output(result, false))
t.Log(utils.Format4Output(result, false))
}
func TestRetailGet(t *testing.T) {
result, err := api.RetailGet(testPoiCode, "5246")
if err != nil {
t.Fatal(err)
}
t.Log(utils.Format4Output(result, false))
}
func TestRetailGetSpTagIds(t *testing.T) {
@@ -69,7 +77,7 @@ func TestRetailCatSkuBatchDelete(t *testing.T) {
}
func TestRetailDelete(t *testing.T) {
err := api.RetailDelete(testPoiCode, "")
err := api.RetailDelete(testPoiCode, "614")
if err != nil {
t.Fatal(err)
}