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