This commit is contained in:
aozhiwei 2024-05-26 11:40:55 +08:00
parent 9f2485a554
commit 2985b24b41
4 changed files with 48 additions and 0 deletions

View File

@ -3,6 +3,7 @@ package constant
const (
APP_MODULE_IDX = iota
CONTROLLER_MGR_MODULE_IDX
ROUTER_MGR_MODULE_IDX
MAX_MODULE_IDX
)

View File

@ -0,0 +1,7 @@
package controller
type ApiGroup struct {
GameLog GameLog
}
var ApiGroupApp = new(ApiGroup)

View File

@ -0,0 +1,12 @@
package router
import (
"main/constant"
"main/global"
)
var _routerMgr = new(routerMgr)
func init() {
global.RegModule(constant.ROUTER_MODULE_IDX, _routerMgr)
}

View File

@ -0,0 +1,28 @@
package router
import (
//"f5"
)
type routerMgr struct {
//system system.RouterGroup
}
func (this *routerMgr) Init() {
/*
f5.GetApp().GetGinEngine().Use(middleware.Cors())
priGroup := f5.GetApp().GetGinEngine().Group("api/v1")
pubGroup := f5.GetApp().GetGinEngine().Group("api/v1")
priGroup.Use(middleware.Auth())
this.system.InitUserRouter(priGroup, pubGroup)
this.system.InitAnncRouter(priGroup)
this.system.InitAuditRouter(priGroup)
this.system.InitMailRouter(priGroup)
this.system.InitBattleServerRouter(priGroup)
f5.GetSysLog().Info("routerMgr.init")
*/
}
func (this *routerMgr) UnInit() {
}