This commit is contained in:
aozhiwei 2024-11-20 14:04:56 +08:00
parent 2dede93d46
commit 0e9aba85c0
4 changed files with 22 additions and 4 deletions

View File

@ -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) {

View File

@ -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)

View 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) {
}

View File

@ -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()
}