Files
baseapi/platformapi/ebaiapi/sku_test.go
邹宗楠 0ad94d882a 1
2024-12-18 17:12:10 +08:00

34 lines
668 B
Go

package ebaiapi
import (
"git.rosy.net.cn/baseapi/utils"
"testing"
)
func TestSkuCategoryList(t *testing.T) {
result, err := api.SkuCategoryList("白菜", 1, 0)
if err != nil {
t.Fatal(err)
} else {
t.Log(utils.Format4Output(result, false))
}
}
func TestSkuBrandList(t *testing.T) {
result, err := api.SkuBrandList("中", 1)
if err != nil {
t.Fatal(err)
} else {
t.Log(utils.Format4Output(result, false))
}
}
func TestPictureUpload(t *testing.T) {
result, err := api.PictureUpload("http://image.jxc4.com/image/bd3d57f1be97f55693f44c6f5167efd7.jpg", nil)
if err != nil {
t.Fatal(err)
} else {
t.Log(utils.Format4Output(result, false))
}
}