31 lines
435 B
Go
31 lines
435 B
Go
package router
|
|
|
|
import (
|
|
"f5"
|
|
"main/router/ca"
|
|
"main/router/nft"
|
|
)
|
|
|
|
type routerMgr struct {
|
|
ca ca.RouterGroup
|
|
nft nft.RouterGroup
|
|
}
|
|
|
|
func (this *routerMgr) Init() {
|
|
/*
|
|
f5.GetApp().GetGinEngine().Use(middleware.Cors())
|
|
*/
|
|
this.ca.InitLoginRouter()
|
|
this.ca.InitAnncRouter()
|
|
this.ca.InitServerSwitchRouter()
|
|
|
|
this.nft.NftMetaRouter.InitRouter()
|
|
|
|
f5.GetSysLog().Info("routerMgr.init")
|
|
|
|
}
|
|
|
|
func (this *routerMgr) UnInit() {
|
|
|
|
}
|