1
This commit is contained in:
parent
9f2485a554
commit
2985b24b41
@ -3,6 +3,7 @@ package constant
|
|||||||
const (
|
const (
|
||||||
APP_MODULE_IDX = iota
|
APP_MODULE_IDX = iota
|
||||||
CONTROLLER_MGR_MODULE_IDX
|
CONTROLLER_MGR_MODULE_IDX
|
||||||
|
ROUTER_MGR_MODULE_IDX
|
||||||
MAX_MODULE_IDX
|
MAX_MODULE_IDX
|
||||||
)
|
)
|
||||||
|
|
||||||
|
7
server/gamelog/controller/enter.go
Normal file
7
server/gamelog/controller/enter.go
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
package controller
|
||||||
|
|
||||||
|
type ApiGroup struct {
|
||||||
|
GameLog GameLog
|
||||||
|
}
|
||||||
|
|
||||||
|
var ApiGroupApp = new(ApiGroup)
|
12
server/gamelog/router/export.go
Normal file
12
server/gamelog/router/export.go
Normal 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)
|
||||||
|
}
|
28
server/gamelog/router/routermgr.go
Normal file
28
server/gamelog/router/routermgr.go
Normal 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() {
|
||||||
|
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user