GM后台服务初步

This commit is contained in:
huangxiaolei
2022-11-24 19:40:59 +08:00
parent c96deb20e2
commit 2ecc1f0e77
6 changed files with 132 additions and 15 deletions

View File

@@ -0,0 +1,20 @@
package controller
import (
"github.com/gin-gonic/gin"
"hk4e/logger"
)
type GmCmdReq struct {
FuncName string `json:"func_name"`
Param []string `json:"param"`
}
func (c *Controller) gmCmd(context *gin.Context) {
gmCmdReq := new(GmCmdReq)
err := context.ShouldBindJSON(gmCmdReq)
if err != nil {
return
}
logger.LOG.Info("%v", gmCmdReq)
}