package routers import ( "server/config" handler "server/modules/backend/handler/gm" "github.com/gin-gonic/gin" ) func gmHandle(e *gin.Engine) { release := config.GetBase().Release e.POST("/gm/getPhoneCode", handler.GMGetPhoneCode) e.GET("/gm/platform/list", handler.ConfigPlatformList) e.POST("/gm/platform/edit", handler.ConfigPlatformEdit) e.GET("/gm/control/*action", handler.ConfigControlCommon) e.POST("/gm/control/*action", handler.ConfigControlCommon) e.POST("/gm/payWeight/*action", handler.ConfigPayWeight) e.POST("/gm/withdrawWeight/*action", handler.ConfigWithdrawWeight) e.POST("/gm/serverVersion/reload", handler.ReloadServerVersion) if !release { e.POST("/gm/addCoin", handler.GMAddCoin) } e.POST("/gm/recharge", handler.GMRecharge) e.POST("/gm/bindPhone", handler.GMBindPhone) e.POST("/gm/unbindPhone", handler.GMUnBindPhone) e.POST("/gm/deleteShareRank", handler.GMDelShareRank) // 后台强制玩家掉线 e.POST("/gm/player/OptPlayerDisconnect", handler.OptPlayerDisconnect) }