mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-02-17 23:02:26 +08:00
GM后台服务初步
This commit is contained in:
20
gm/controller/gm_controller.go
Normal file
20
gm/controller/gm_controller.go
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user