This commit is contained in:
苏尹岚
2021-02-08 11:45:00 +08:00
parent a376ce1e48
commit 9c2c0930fd
11 changed files with 67 additions and 22 deletions

View File

@@ -25,7 +25,24 @@ func TestCommonShopCategoriesGet(t *testing.T) {
}
func TestCommonShopCategories(t *testing.T) {
result, err := api.CommonShopCategories(166, 2)
/*
{
"category1": "厨房生鲜",
"category2": "蔬菜"
},
{
"category1": "水果",
"category2": "水果店"
},
{
"category1": "厨房生鲜",
"category2": "肉类"
},
{
"category1": "厨房生鲜",
"category2": "水产"
} */
result, err := api.CommonShopCategories(277, 2)
if err != nil {
t.Fatal(err)
} else {
@@ -34,7 +51,7 @@ func TestCommonShopCategories(t *testing.T) {
}
func TestCommonBusinessCategories(t *testing.T) {
result, err := api.CommonBusinessCategories(166)
result, err := api.CommonBusinessCategories(0)
if err != nil {
t.Fatal(err)
} else {