package ebaiapi import ( "testing" "git.rosy.net.cn/baseapi/utils" ) func TestCommonShopCities(t *testing.T) { result, err := api.CommonShopCities(75) if err != nil { t.Fatal(err) } else { t.Log(utils.Format4Output(result, false)) } } func TestCommonShopCategoriesGet(t *testing.T) { result, err := api.CommonShopCategoriesGet() if err != nil { t.Fatal(err) } else { t.Log(utils.Format4Output(result, false)) } } func TestCommonShopCategories(t *testing.T) { /* { "category1": "厨房生鲜", "category2": "蔬菜" }, { "category1": "水果", "category2": "水果店" }, { "category1": "厨房生鲜", "category2": "肉类" }, { "category1": "厨房生鲜", "category2": "水产" } */ result, err := api.CommonShopCategories(274, 2) if err != nil { t.Fatal(err) } else { t.Log(utils.Format4Output(result, false)) } } func TestCommonBusinessCategories(t *testing.T) { result, err := api.CommonBusinessCategories(0) if err != nil { t.Fatal(err) } else { t.Log(utils.Format4Output(result, false)) } }