This commit is contained in:
suyl
2021-04-26 18:10:31 +08:00
parent 9084b0c0fc
commit b047a0dcd8
3 changed files with 63 additions and 1 deletions

View File

@@ -0,0 +1,22 @@
package pddapi
import (
"git.rosy.net.cn/baseapi/utils"
"testing"
)
func TestGoodsCatsGet(t *testing.T) {
result, err := api.GoodsCatsGet(0)
if err != nil {
t.Fatal(err)
}
t.Log(utils.Format4Output(result, false))
}
func TestGoodsSearch(t *testing.T) {
result, err := api.GoodsSearch(0, nil, "", "", 1, 5, 0)
if err != nil {
t.Fatal(err)
}
t.Log(utils.Format4Output(result, false))
}