This commit is contained in:
richboo111
2023-04-25 09:46:26 +08:00
parent 69040cd1cf
commit a5f750ad67
21 changed files with 1552 additions and 32 deletions

View File

@@ -9,7 +9,6 @@ package routers
import (
"git.rosy.net.cn/jx-callback/controllers"
"github.com/astaxie/beego/server/web"
beecontext "github.com/astaxie/beego/server/web/context"
)
@@ -166,6 +165,11 @@ func init() {
&controllers.VersionController{},
),
),
web.NSNamespace("/im",
web.NSInclude(
&controllers.IMController{},
),
),
)
web.AddNamespace(ns)
@@ -193,6 +197,8 @@ func init() {
web.AutoRouter(&controllers.TiktokController{}) // 订单
web.AutoRouter(&controllers.TiktokShopController{}) // 门店授权
web.AutoRouter(&controllers.LogisticsController{}) // 抖音快递信息同步
//web.AutoRouter(&controllers.IMController{}) //im
// 如下都是用于检测存活的空接口
web.Any("/", func(ctx *beecontext.Context) {
ctx.WriteString("pong\n")