package routers import ( "git.rosy.net.cn/jx-print/controllers" router "github.com/chenqinghe/gin-autorouter" "github.com/gin-gonic/gin" ) func Init(r *gin.Engine) { // 需要token-管理系统 InitV2System(r.Group("/v2")) //v1是不需要token的-管理系统 InitV1System(r.Group("v1")) // app端不需要token // app端需要token //自动路由 r.Any("/callback/*path", router.AutoRoute(&controllers.CallbackController{})) }