This commit is contained in:
aozhiwei 2024-11-20 14:06:40 +08:00
parent 0e9aba85c0
commit bb99ca776a
2 changed files with 3 additions and 1 deletions

View File

@ -5,6 +5,7 @@ import (
"main/constant"
"main/common"
"main/vo"
"main/service"
"github.com/gin-gonic/gin"
"strings"
)
@ -35,5 +36,6 @@ func (this *GmApi) ExecCmd(c *gin.Context) {
rspObj := struct {
vo.BaseVo
}{}
service.GM.DispatchCmd(cmds[0], cmds[1:len(cmds)], &rspObj.BaseVo)
c.JSON(200, rspObj)
}

View File

@ -15,5 +15,5 @@ func (this *gm) init() {
func (this *gm) unInit() {
}
func (this *gm) DispatchCmd(cmd string, params []string) {
func (this *gm) DispatchCmd(cmd string, params []string, baseVo *vo.BaseVo) {
}