diff --git a/server/wheelserver/api/v1/gm/gm.go b/server/wheelserver/api/v1/gm/gm.go index c9b82fd9..cd113715 100644 --- a/server/wheelserver/api/v1/gm/gm.go +++ b/server/wheelserver/api/v1/gm/gm.go @@ -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) } diff --git a/server/wheelserver/service/gm.go b/server/wheelserver/service/gm.go index ddf3ef58..beb49d18 100644 --- a/server/wheelserver/service/gm.go +++ b/server/wheelserver/service/gm.go @@ -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) { }