- InitVendorCategory可对三个主流平台进行操作

This commit is contained in:
gazebo
2019-04-23 17:40:44 +08:00
parent f860307530
commit a857d40442
11 changed files with 130 additions and 13 deletions

View File

@@ -1,6 +1,11 @@
package ebai
import (
"testing"
"git.rosy.net.cn/baseapi/utils"
"git.rosy.net.cn/jx-callback/business/jxutils/jxcontext"
_ "git.rosy.net.cn/jx-callback/business/jxcallback/scheduler/defsch"
"git.rosy.net.cn/jx-callback/globals/testinit"
)
@@ -13,3 +18,11 @@ const (
func init() {
testinit.Init()
}
func TestGetVendorCategories(t *testing.T) {
catList, err := new(PurchaseHandler).GetVendorCategories(jxcontext.AdminCtx)
if err != nil {
t.Fatal(err)
}
t.Log(utils.Format4Output(catList, false))
}