1
This commit is contained in:
parent
c4fada6827
commit
49e3911ae0
@ -12,7 +12,7 @@ type GameLogApi struct {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *GameLogApi) caCustomReport(c *gin.Context) {
|
func (this *GameLogApi) CustomReport(c *gin.Context) {
|
||||||
rspObj := struct {
|
rspObj := struct {
|
||||||
ErrCode int32 `json:"errcode"`
|
ErrCode int32 `json:"errcode"`
|
||||||
ErrMsg string `json:"errmsg"`
|
ErrMsg string `json:"errmsg"`
|
||||||
|
@ -3,7 +3,6 @@ package initialize
|
|||||||
import (
|
import (
|
||||||
_ "main/app"
|
_ "main/app"
|
||||||
. "main/global"
|
. "main/global"
|
||||||
_ "main/api"
|
|
||||||
_ "main/router"
|
_ "main/router"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
5
server/gamelog/router/ca/enter.go
Normal file
5
server/gamelog/router/ca/enter.go
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
package ca
|
||||||
|
|
||||||
|
type RouterGroup struct {
|
||||||
|
GameLogRouter
|
||||||
|
}
|
12
server/gamelog/router/ca/gamelog.go
Normal file
12
server/gamelog/router/ca/gamelog.go
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
package ca
|
||||||
|
|
||||||
|
import (
|
||||||
|
"f5"
|
||||||
|
"main/api/ca"
|
||||||
|
)
|
||||||
|
|
||||||
|
type GameLogRouter struct{}
|
||||||
|
|
||||||
|
func (this *GameLogRouter) InitGameLogRouter() {
|
||||||
|
f5.GetApp().RegisterCaHandle("GameLog", "customReport", ca.ApiGroupApp.CustomReport)
|
||||||
|
}
|
@ -1,26 +1,21 @@
|
|||||||
package router
|
package router
|
||||||
|
|
||||||
import (
|
import (
|
||||||
//"f5"
|
"f5"
|
||||||
|
"main/router/ca"
|
||||||
)
|
)
|
||||||
|
|
||||||
type routerMgr struct {
|
type routerMgr struct {
|
||||||
//system system.RouterGroup
|
ca ca.RouterGroup
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *routerMgr) Init() {
|
func (this *routerMgr) Init() {
|
||||||
/*
|
/*
|
||||||
f5.GetApp().GetGinEngine().Use(middleware.Cors())
|
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")
|
|
||||||
*/
|
*/
|
||||||
|
this.ca.InitGameLogRouter()
|
||||||
|
f5.GetSysLog().Info("routerMgr.init")
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *routerMgr) UnInit() {
|
func (this *routerMgr) UnInit() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user