package game import ( "github.com/gogf/gf/v2/frame/g" "tyj_admin/api/v1/common" "tyj_admin/internal/model/entity" ) type GetServerVersionListReq struct { g.Meta `path:"/server/getVersion" tags:"server" method:"get" summary:"getVersion"` Server string `json:"serverId"` } type GetServerVersionListRes struct { g.Meta `mime:"application/json"` Version string `json:"version"` } type GetServerConfigGeneralReq struct { g.Meta `path:"/serverConfig/getGeneral" tags:"系统配置" method:"post" summary:"ServerConfig"` } type GetServerConfigGeneralRes struct { g.Meta `mime:"application/json"` List []entity.GameServerJsonGeneral `json:"list"` } type AddServerConfigGeneralReq struct { g.Meta `path:"/serverConfig/addGeneral" tags:"系统配置" method:"post" summary:"修改generalServerConfig"` Id int `p:"id"` BackstageRechargeUrl string `p:"backstageRechargeUrl"` GmWhiteListUrl string `p:"gmWhiteListUrl"` IdentityCheckAddress string `p:"identityCheckAddress"` RechargeWhiteListIps string `p:"rechargeWhiteListIps"` SdkAddress string `p:"sdkAddress"` UniqueAddress string `p:"uniqueAddress"` } type AddServerConfigGeneralRes struct { } type AddServerConfigReq struct { g.Meta `path:"/serverConfig/add" tags:"服务器配置" method:"post" summary:"修改ServerConfig"` Id int `p:"id"` GameDbUrl string `p:"gameDbUrl"` GameDbName string `p:"gameDbName"` Platform int `p:"platform"` InnerIp string `p:"innerIp"` CreateTime string `p:"createTime"` Remark string `p:"remark"` Difficulty int `p:"difficulty"` Channel string `p:"channel"` } type AddServerConfigRes struct { } type GetRouterReq struct { g.Meta `path:"/serverConfig/getRouter" tags:"服务器配置" method:"post" summary:"router"` common.PageReq } type GetRouterRes struct { g.Meta `mime:"application/json"` List []entity.GameRouter `json:"list"` common.ListRes } type AddRouterReq struct { g.Meta `path:"/serverConfig/updateRouter" tags:"服务器配置" method:"post" summary:"修改ServerConfig"` Id int `p:"id"` RealmIp string `p:"realmIp"` RealmPort int `p:"realmPort"` RealmStep int `p:"realmStep"` RealmNum int `p:"realmNum"` RouterIp string `p:"routerIp"` RouterPort int `p:"routerPort"` RouterStep int `p:"routerStep"` RouterNum int `p:"routerNum"` } type AddRouterRes struct { } type GetServerConfigReq struct { g.Meta `path:"/getServerConfig" tags:"外部接口" method:"get" summary:"获取服务器配置"` ServerId int `p:"serverId"` } type GetServerConfigRes struct { g.Meta `mime:"application/json"` Id int `json:"serverId" description:""` SdkAddress string `json:"sdkAddress" description:""` UniqueAddress string `json:"uniqueAddress" description:""` IdentityCheckAddress string `json:"identityCheckAddress" description:""` RechargeWhiteListIps string `json:"rechargeWhiteListIps" description:""` GmWhiteListUrl string `json:"gmWhiteListUrl" description:""` BackstageRechargeUrl string `json:"backstageRechargeUrl" description:""` GameDifficulty int `json:"gameDifficulty" description:""` GameDbUrl string `json:"gameDbUrl" description:""` GameDbName string `json:"gameDbName" description:""` Platform int `json:"platform" description:""` InnerIp string `json:"innerIp" description:""` CreateTime int64 `json:"createTime" description:""` }