import cycle not allowed

This commit is contained in:
2023-01-18 17:46:25 +08:00
parent 8d3a64b26e
commit 26f46f1eb6
35 changed files with 355 additions and 341 deletions
+3 -2
View File
@@ -4,16 +4,16 @@ import (
"cutego/modules/core/router"
"cutego/pkg/filter"
"cutego/pkg/jwt"
"cutego/pkg/logging"
"cutego/pkg/middleware"
"cutego/pkg/middleware/logger"
"cutego/pkg/websocket"
"cutego/refs"
"fmt"
"github.com/gin-gonic/gin"
)
func init() {
fmt.Println("CoolGin init...")
logging.InfoLog("CoolGin init start...")
refs.CoolGin = gin.New()
refs.CoolGin.Use(gin.Logger())
refs.CoolGin.Use(gin.Recovery())
@@ -27,4 +27,5 @@ func init() {
v1Router := refs.CoolGin.Group("/api/v1")
// 加载: 模块路由
router.LoadCoreRouter(v1Router)
logging.InfoLog("CoolGin init end...")
}