Files
hk4e/gm/controller/gm_controller.go
2022-11-24 22:47:24 +08:00

22 lines
361 B
Go

package controller
import (
"hk4e/pkg/logger"
"github.com/gin-gonic/gin"
)
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)
}