1
This commit is contained in:
parent
47566049ec
commit
78462ed1a1
@ -64,6 +64,7 @@ func (this *InGameApi) HeroList(c *gin.Context) {
|
|||||||
func (row interface{}) {
|
func (row interface{}) {
|
||||||
q5.AppendSlice(&rspObj.Rows, row)
|
q5.AppendSlice(&rspObj.Rows, row)
|
||||||
})
|
})
|
||||||
|
c.JSON(200, rspObj)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *InGameApi) HeroMint(c *gin.Context) {
|
func (this *InGameApi) HeroMint(c *gin.Context) {
|
||||||
|
@ -8,7 +8,7 @@ import (
|
|||||||
type IngameRouter struct{}
|
type IngameRouter struct{}
|
||||||
|
|
||||||
func (this *IngameRouter) InitRouter() {
|
func (this *IngameRouter) InitRouter() {
|
||||||
api := v1.ApiGroupApp.IngameApiGroup
|
api := v1.ApiGroupApp.InGameApiGroup
|
||||||
f5.GetApp().GetGinEngine().GET("/api/ingame/asset/hero/list", api.IngameApi.HeroList)
|
f5.GetApp().GetGinEngine().GET("/api/ingame/asset/hero/list", api.InGameApi.HeroList)
|
||||||
f5.GetApp().GetGinEngine().POST("/api/ingame/asset/hero/mint", api.IngameApi.HeroMint)
|
f5.GetApp().GetGinEngine().POST("/api/ingame/asset/hero/mint", api.InGameApi.HeroMint)
|
||||||
}
|
}
|
||||||
|
@ -9,6 +9,7 @@ import (
|
|||||||
"main/router/gold_bullion"
|
"main/router/gold_bullion"
|
||||||
"main/router/shopcart"
|
"main/router/shopcart"
|
||||||
"main/router/nft"
|
"main/router/nft"
|
||||||
|
"main/router/ingame"
|
||||||
)
|
)
|
||||||
|
|
||||||
type routerMgr struct {
|
type routerMgr struct {
|
||||||
@ -18,6 +19,7 @@ type routerMgr struct {
|
|||||||
goldBullion gold_bullion.RouterGroup
|
goldBullion gold_bullion.RouterGroup
|
||||||
shopCart shopcart.RouterGroup
|
shopCart shopcart.RouterGroup
|
||||||
nft nft.RouterGroup
|
nft nft.RouterGroup
|
||||||
|
ingame ingame.RouterGroup
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *routerMgr) Init() {
|
func (this *routerMgr) Init() {
|
||||||
@ -28,6 +30,7 @@ func (this *routerMgr) Init() {
|
|||||||
this.goldBullion.GoldBullionRouter.InitRouter()
|
this.goldBullion.GoldBullionRouter.InitRouter()
|
||||||
this.shopCart.ShopCartRouter.InitRouter()
|
this.shopCart.ShopCartRouter.InitRouter()
|
||||||
this.nft.NftRouter.InitRouter()
|
this.nft.NftRouter.InitRouter()
|
||||||
|
this.ingame.IngameRouter.InitRouter()
|
||||||
|
|
||||||
f5.GetSysLog().Info("routerMgr.init")
|
f5.GetSysLog().Info("routerMgr.init")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user