aa
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user