1
This commit is contained in:
parent
0e9aba85c0
commit
bb99ca776a
@ -5,6 +5,7 @@ import (
|
|||||||
"main/constant"
|
"main/constant"
|
||||||
"main/common"
|
"main/common"
|
||||||
"main/vo"
|
"main/vo"
|
||||||
|
"main/service"
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
@ -35,5 +36,6 @@ func (this *GmApi) ExecCmd(c *gin.Context) {
|
|||||||
rspObj := struct {
|
rspObj := struct {
|
||||||
vo.BaseVo
|
vo.BaseVo
|
||||||
}{}
|
}{}
|
||||||
|
service.GM.DispatchCmd(cmds[0], cmds[1:len(cmds)], &rspObj.BaseVo)
|
||||||
c.JSON(200, rspObj)
|
c.JSON(200, rspObj)
|
||||||
}
|
}
|
||||||
|
@ -15,5 +15,5 @@ func (this *gm) init() {
|
|||||||
func (this *gm) unInit() {
|
func (this *gm) unInit() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *gm) DispatchCmd(cmd string, params []string) {
|
func (this *gm) DispatchCmd(cmd string, params []string, baseVo *vo.BaseVo) {
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user