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.

258 lines
6.9 KiB

4 months ago
package game
import (
"github.com/gogf/gf/v2/frame/g"
"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 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"`
}
4 months ago
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"`
}
type AddLoginUrlRes struct {
}
type AddServerConfigGeneralReq struct {
g.Meta `path:"/ServerConfig/addGeneral" tags:"登录地址" method:"post" summary:"添加loginUrl"`
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 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"`
}