1
This commit is contained in:
parent
2dede93d46
commit
0e9aba85c0
@ -1,19 +1,15 @@
|
||||
package gm
|
||||
|
||||
import (
|
||||
"q5"
|
||||
"f5"
|
||||
"main/constant"
|
||||
"main/common"
|
||||
//"main/model"
|
||||
"main/vo"
|
||||
//"main/mt"
|
||||
"github.com/gin-gonic/gin"
|
||||
"strings"
|
||||
)
|
||||
|
||||
type GmApi struct {
|
||||
cmdHash q5.ConcurrentMap[string, func(*gin.Context, []string, *vo.BaseVo)]
|
||||
}
|
||||
|
||||
func (this *GmApi) ExecCmd(c *gin.Context) {
|
||||
|
@ -8,6 +8,7 @@ import (
|
||||
var _serviceMgr = new(serviceMgr)
|
||||
var Chip = new(chip)
|
||||
var Log = new(log)
|
||||
var GM = new(gm)
|
||||
|
||||
func init() {
|
||||
global.RegModule(constant.SERVICE_MGR_MODULE_IDX, _serviceMgr)
|
||||
|
19
server/wheelserver/service/gm.go
Normal file
19
server/wheelserver/service/gm.go
Normal file
@ -0,0 +1,19 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"q5"
|
||||
"main/vo"
|
||||
)
|
||||
|
||||
type gm struct {
|
||||
cmdHash q5.ConcurrentMap[string, func([]string, *vo.BaseVo)]
|
||||
}
|
||||
|
||||
func (this *gm) init() {
|
||||
}
|
||||
|
||||
func (this *gm) unInit() {
|
||||
}
|
||||
|
||||
func (this *gm) DispatchCmd(cmd string, params []string) {
|
||||
}
|
@ -6,9 +6,11 @@ type serviceMgr struct {
|
||||
func (this *serviceMgr) Init() {
|
||||
Chip.init()
|
||||
Log.init()
|
||||
GM.init()
|
||||
}
|
||||
|
||||
func (this *serviceMgr) UnInit() {
|
||||
GM.unInit()
|
||||
Chip.unInit()
|
||||
Log.unInit()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user