Files
baseapi/platformapi/ebaiapi/sku_test.go
邹宗楠 406062b36c 1
2023-11-27 17:11:59 +08:00

34 lines
669 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("https://image.jxc4.com/image/cc7119fbe87cdefc66995cd79321c21c.jpg", nil)
if err != nil {
t.Fatal(err)
} else {
t.Log(utils.Format4Output(result, false))
}
}