1
This commit is contained in:
parent
9ab95f62bd
commit
d8784ca3f5
@ -15,5 +15,5 @@ func (this *BagRouter) InitRouter() {
|
|||||||
api.BagApi.List)
|
api.BagApi.List)
|
||||||
f5.GetApp().GetGinEngine().POST("/api/v1/bag/use_item",
|
f5.GetApp().GetGinEngine().POST("/api/v1/bag/use_item",
|
||||||
middleware.JwtAuth,
|
middleware.JwtAuth,
|
||||||
api.BagApi.UserItem)
|
api.BagApi.UseItem)
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
package gm
|
package gm
|
||||||
|
|
||||||
type RouterGroup struct {
|
type RouterGroup struct {
|
||||||
GmRouter
|
GMRouter
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package user
|
package gm
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"f5"
|
"f5"
|
||||||
@ -9,8 +9,8 @@ import (
|
|||||||
type GMRouter struct{}
|
type GMRouter struct{}
|
||||||
|
|
||||||
func (this *GMRouter) InitRouter() {
|
func (this *GMRouter) InitRouter() {
|
||||||
api := v1.ApiGroupApp.BagApiGroup
|
api := v1.ApiGroupApp.GmApiGroup
|
||||||
f5.GetApp().GetGinEngine().POST("/api/v1/gm/exec_cmd",
|
f5.GetApp().GetGinEngine().POST("/api/v1/gm/exec_cmd",
|
||||||
middleware.JwtAuth,
|
middleware.JwtAuth,
|
||||||
api.BagApi.ExecCmd)
|
api.GmApi.ExecCmd)
|
||||||
}
|
}
|
||||||
|
@ -10,6 +10,9 @@ import (
|
|||||||
"main/router/mission"
|
"main/router/mission"
|
||||||
"main/router/shop"
|
"main/router/shop"
|
||||||
"main/router/user"
|
"main/router/user"
|
||||||
|
"main/router/bag"
|
||||||
|
"main/router/buff"
|
||||||
|
"main/router/gm"
|
||||||
)
|
)
|
||||||
|
|
||||||
type routerMgr struct {
|
type routerMgr struct {
|
||||||
@ -20,6 +23,9 @@ type routerMgr struct {
|
|||||||
mission mission.RouterGroup
|
mission mission.RouterGroup
|
||||||
shop shop.RouterGroup
|
shop shop.RouterGroup
|
||||||
user user.RouterGroup
|
user user.RouterGroup
|
||||||
|
bag bag.RouterGroup
|
||||||
|
buff buff.RouterGroup
|
||||||
|
gm gm.RouterGroup
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *routerMgr) Init() {
|
func (this *routerMgr) Init() {
|
||||||
@ -31,6 +37,9 @@ func (this *routerMgr) Init() {
|
|||||||
this.mission.MissionRouter.InitRouter()
|
this.mission.MissionRouter.InitRouter()
|
||||||
this.shop.ShopRouter.InitRouter()
|
this.shop.ShopRouter.InitRouter()
|
||||||
this.user.UserRouter.InitRouter()
|
this.user.UserRouter.InitRouter()
|
||||||
|
this.bag.BagRouter.InitRouter()
|
||||||
|
this.buff.BuffRouter.InitRouter()
|
||||||
|
this.gm.GMRouter.InitRouter()
|
||||||
|
|
||||||
f5.GetSysLog().Info("routerMgr.init")
|
f5.GetSysLog().Info("routerMgr.init")
|
||||||
|
|
||||||
|
@ -23,5 +23,5 @@ func (this *User) FromModel(m *model.User) {
|
|||||||
this.HourlyEarnings = "0"
|
this.HourlyEarnings = "0"
|
||||||
this.Dice = m.Dice
|
this.Dice = m.Dice
|
||||||
this.SpecDice = m.SpecDice
|
this.SpecDice = m.SpecDice
|
||||||
this.CurrGrid = 0
|
this.CurrGrid = m.CurrGrid
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user