29 lines
616 B
Go
29 lines
616 B
Go
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() {
|
|
|
|
}
|