32 lines
585 B
Go
32 lines
585 B
Go
package jdshopapi
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"git.rosy.net.cn/baseapi/utils"
|
|
)
|
|
|
|
func TestFindShopCategories(t *testing.T) {
|
|
result, err := api.FindShopCategories()
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
t.Log(utils.Format4Output(result, false))
|
|
}
|
|
|
|
func TestDeleteShopCategory(t *testing.T) {
|
|
result, err := api.DeleteShopCategory(14439186)
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
t.Log(utils.Format4Output(result, false))
|
|
}
|
|
|
|
func TestFindVendorCategories(t *testing.T) {
|
|
result, err := api.FindVendorCategories()
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
t.Log(utils.Format4Output(result, false))
|
|
}
|