You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

338 lines
9.2 KiB

4 months ago
package game
import (
"github.com/gogf/gf/v2/frame/g"
4 months ago
"tyj_admin/api/v1/common"
4 months ago
"tyj_admin/internal/model/entity"
)
type GetCCDReq struct {
g.Meta `path:"/ccd/getCCD" tags:"ccd" method:"post" summary:"获取ccd"`
Platform string `p:"platform"`
ChannelType string `p:"channelType"`
VersionName string `p:"versionName"`
VersionCode string `p:"versionCode"`
Ip string `p:"ip"`
PageNum int `p:"pageNum"`
PageSize int `p:"pageSize"`
}
type GetCCDRes struct {
g.Meta `mime:"application/json"`
CCDList []entity.GameCcdUrl `json:"ccdList"`
Total int `json:"total"`
}
type AddCCDReq struct {
g.Meta `path:"/ccd/addCCD" tags:"ccd" method:"post" summary:"添加热更地址"`
Platform string `p:"platform"`
ChannelType string `p:"channelType"`
VersionName string `p:"versionName"`
VersionCode string `p:"versionCode"`
Ip string `p:"ip"`
HotfixVersion string `p:"hotfixVersion"`
VersionCompare string `p:"versionCompare"`
State uint `p:"state"`
Url string `p:"url"`
}
type AddCCDRes struct {
}
type DelCCDReq struct {
g.Meta `path:"/ccd/delCCD" tags:"ccd" method:"post" summary:"删除热更地址"`
Id uint64 `p:"id"`
}
type DelCCDRes struct {
}
type GetLoginUrlReq struct {
g.Meta `path:"/loginUrl/getLoginUrl" tags:"登录地址" method:"post" summary:"loginUrl"`
PageNum int `p:"pageNum"`
PageSize int `p:"pageSize"`
}
type GetLoginUrlRes struct {
g.Meta `mime:"application/json"`
LoginUrlList []entity.GameLoginUrl `json:"loginUrlList"`
Total int `json:"total"`
}
type GetAllLoginUrlReq struct {
g.Meta `path:"/loginUrl/getAllLoginUrl" tags:"登录地址" method:"post" summary:"allLoginUrl"`
}
type GetAllLoginUrlRes struct {
g.Meta `mime:"application/json"`
LoginUrlList []entity.GameLoginUrl `json:"loginUrlList"`
}
type AddLoginUrlReq struct {
g.Meta `path:"/loginUrl/addLoginUrl" tags:"登录地址" method:"post" summary:"添加loginUrl"`
Id int `p:"id"`
Host string `p:"host"`
Port int `p:"port"`
State int `p:"state"`
Recommend int `p:"recommend"`
3 months ago
IsNew int `p:"isNew"`
4 months ago
}
type AddLoginUrlRes struct {
}
4 months ago
type AddNewLoginUrlReq struct {
g.Meta `path:"/loginUrl/addNewLoginUrl" tags:"登录地址" method:"post" summary:"添加loginUrl"`
Id int `p:"id"`
Host string `p:"host"`
Port int `p:"port"`
State int `p:"state"`
Recommend int `p:"recommend"`
Name string `p:"name"`
RechargeHost string `p:"rechargeHost"`
RechargePort int `p:"rechargePort"`
Area int `p:"area"`
IsShow int `p:"isShow"`
Channel string `p:"channel"`
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"`
}
type AddNewLoginUrlRes struct {
}
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 {
4 months ago
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 {
}
4 months ago
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 {
}
4 months ago
type DelLoginUrlReq struct {
g.Meta `path:"/loginUrl/delLoginUrl" tags:"登录地址" method:"post" summary:"删除loginUrl"`
Id uint64 `p:"id"`
}
type DelLoginUrlRes struct {
}
type GetVersionReq struct {
g.Meta `path:"/version/get" tags:"版本号" method:"post" summary:"获取"`
PageNum int `p:"pageNum"`
PageSize int `p:"pageSize"`
}
type GetVersionRes struct {
g.Meta `mime:"application/json"`
Version []entity.GameVersion `json:"version"`
Total int `json:"total"`
}
type UpdateVersionReq struct {
g.Meta `path:"/version/update" tags:"版本号" method:"post" summary:"更新"`
Channel string `p:"channel"`
Version string `p:"version"`
}
type UpdateVersionRes struct {
g.Meta `mime:"application/json"`
}
type DelVersionReq struct {
g.Meta `path:"/version/del" tags:"版本号" method:"post" summary:"删除"`
Id int32 `p:"id"`
}
type DelVersionRes struct {
g.Meta `mime:"application/json"`
}
type GetListWhiteListReq struct {
g.Meta `path:"/whiteList/get" tags:"ip白名单" method:"post" summary:"获取ip白名单列表"`
PageNum int `p:"pageNum"`
PageSize int `p:"pageSize"`
}
type GetListWhiteListRes struct {
g.Meta `mime:"application/json"`
WhiteList []entity.GameWhiteList `json:"whiteList"`
Total int `json:"total"`
}
type GetWhiteStateReq struct {
g.Meta `path:"/whiteState/get" tags:"ip白名单" method:"get" summary:"判断ip白名单"`
}
type GetWhiteStateRes struct {
g.Meta `mime:"application/json"`
Count int `json:"count"`
}
type GetWhiteListReq struct {
g.Meta `path:"/whiteList/get" tags:"ip白名单" method:"get" summary:"判断ip白名单"`
}
type GetWhiteListRes struct {
g.Meta `mime:"application/json"`
Count int `json:"count"`
}
type WhiteListReq struct {
g.Meta `path:"/whiteList/list" tags:"ip白名单" method:"get" summary:"获取ip白名单列表"`
}
type WhiteListRes struct {
g.Meta `mime:"application/json"`
WhiteList []string `json:"whiteList"`
}
type UpdateWhiteListReq struct {
g.Meta `path:"/whiteList/update" tags:"ip白名单" method:"post" summary:"更新ip白名单"`
//Id int `p:"id"`
Ip string `p:"ip"`
}
type UpdateWhiteListRes struct {
g.Meta `mime:"application/json"`
}
type DelWhiteListReq struct {
g.Meta `path:"/whiteList/del" tags:"ip白名单" method:"post" summary:"删除ip白名单"`
Ip string `p:"ip"`
}
type DelWhiteListRes struct {
g.Meta `mime:"application/json"`
}
type GetListBlackListReq struct {
g.Meta `path:"/blackList/get" tags:"ip白名单" method:"post" summary:"获取ip白名单列表"`
PageNum int `p:"pageNum"`
PageSize int `p:"pageSize"`
}
type GetListBlackListRes struct {
g.Meta `mime:"application/json"`
WhiteList []entity.GameBlackList `json:"whiteList"`
Total int `json:"total"`
}
type GetBlackListReq struct {
g.Meta `path:"/blackList/get" tags:"ip白名单" method:"get" summary:"判断ip白名单"`
}
type GetBlackListRes struct {
g.Meta `mime:"application/json"`
Count int `json:"count"`
}
type UpdateBlackListReq struct {
g.Meta `path:"/blackList/update" tags:"ip白名单" method:"post" summary:"更新ip白名单"`
Id int `p:"id"`
Ip string `p:"ip"`
}
type UpdateBlackListRes struct {
g.Meta `mime:"application/json"`
}
type DelBlackListReq struct {
g.Meta `path:"/blackList/del" tags:"ip白名单" method:"post" summary:"删除ip白名单"`
Ip string `p:"ip"`
}
type DelBlackListRes struct {
g.Meta `mime:"application/json"`
}
type GetAllChannelReq struct {
g.Meta `path:"/loginUrl/getAllChannel" tags:"登录地址" method:"post" summary:"getAllChannel"`
}
type GetAllChannelRes struct {
g.Meta `mime:"application/json"`
List []entity.GameChannelList `json:"List"`
}
type GetAllCcdUrlReq struct {
g.Meta `path:"/loginUrl/getAllCcdUrl" tags:"热更URL" method:"post" summary:"getAllCcdUrl"`
}
type GetAllCcdUrlRes struct {
g.Meta `mime:"application/json"`
List []entity.GameCcdVersion `json:"list"`
}
4 months ago
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"`
}