aozhiwei a3ee1e4b1f 1
2024-07-16 13:41:18 +08:00

39 lines
779 B
Go

package router
import (
"f5"
"main/middleware"
"main/router/market"
"main/router/asset"
"main/router/hero"
"main/router/gold_bullion"
"main/router/shopcart"
"main/router/nft"
)
type routerMgr struct {
market market.RouterGroup
asset asset.RouterGroup
hero hero.RouterGroup
goldBullion gold_bullion.RouterGroup
shopCart shopcart.RouterGroup
nft nft.RouterGroup
}
func (this *routerMgr) Init() {
f5.GetApp().GetGinEngine().Use(middleware.Cors())
this.market.MarketRouter.InitRouter()
this.asset.AssetRouter.InitRouter()
this.hero.HeroRouter.InitRouter()
this.goldBullion.GoldBullionRouter.InitRouter()
this.shopCart.ShopCartRouter.InitRouter()
this.nft.NftRouter.InitRouter()
f5.GetSysLog().Info("routerMgr.init")
}
func (this *routerMgr) UnInit() {
}