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.
124 lines
3.8 KiB
124 lines
3.8 KiB
1 month ago
|
package game
|
||
|
|
||
|
import (
|
||
|
"github.com/gogf/gf/v2/frame/g"
|
||
|
"tyj_admin/api/v1/common"
|
||
|
"tyj_admin/internal/model/entity"
|
||
|
)
|
||
|
|
||
|
type GetLoginUrlReq struct {
|
||
|
g.Meta `path:"/loginUrl/getLoginUrl" tags:"登录地址" method:"post" summary:"loginUrl"`
|
||
|
common.PageReq
|
||
|
}
|
||
|
|
||
|
type GetLoginUrlRes struct {
|
||
|
g.Meta `mime:"application/json"`
|
||
|
LoginUrlList []entity.GameLoginUrl `json:"loginUrlList"`
|
||
|
common.ListRes
|
||
|
}
|
||
|
|
||
|
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 string `p:"state"`
|
||
|
Recommend string `p:"recommend"`
|
||
|
IsNew string `p:"isNew"`
|
||
|
}
|
||
|
|
||
|
type AddLoginUrlRes struct {
|
||
|
}
|
||
|
|
||
|
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 DelLoginUrlReq struct {
|
||
|
g.Meta `path:"/loginUrl/delLoginUrl" tags:"登录地址" method:"post" summary:"删除loginUrl"`
|
||
|
Id uint64 `p:"id"`
|
||
|
}
|
||
|
|
||
|
type DelLoginUrlRes struct {
|
||
|
}
|
||
|
|
||
|
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"`
|
||
|
}
|
||
|
|
||
|
type GetGameLoginUrlReq struct {
|
||
|
g.Meta `path:"/loginUrl/get" tags:"外部接口" method:"get" summary:"登录地址"`
|
||
|
Account string `p:"account" `
|
||
|
Channel string `p:"channel" `
|
||
|
Version string `p:"version" ` // 旧版本使用
|
||
|
VersionName string `p:"versionName" ` // 新版新增
|
||
|
VersionCode string `p:"versionCode" `
|
||
|
}
|
||
|
|
||
|
type LoginUrlData struct {
|
||
|
Id int `json:"server_id" description:"服务器编号"`
|
||
|
Host string `json:"host" description:""`
|
||
|
Port int `json:"port" description:""`
|
||
|
State int `json:"state" description:"服务器状态,1-正常,2-维护,3-白名单ip优先+渠道,4-黑名单渠道优先+ip白名单"`
|
||
|
|
||
|
Area int `json:"area" description:"服务器区服"`
|
||
|
Name string `json:"name" description:"服务器名称"`
|
||
|
Difficulty int `json:"difficulty" description:"难度标识"`
|
||
|
Recommend int `json:"recommend" description:"推荐标识,1-推荐" `
|
||
|
|
||
|
Last int `json:"last" description:"上次登录标识,1-登录"`
|
||
|
Scale int `json:"scale" description:"玩家规模等级"`
|
||
|
AccountName string `json:"accountName" description:"玩家名称"`
|
||
|
CreateTime int64 `json:"createTime" description:"创建时间"`
|
||
|
IsNew int `json:"isNew" description:"是否新服"`
|
||
|
}
|
||
|
|
||
|
type GetGameLoginUrlRes struct {
|
||
|
g.Meta `mime:"application/json"`
|
||
|
UrlStr []LoginUrlData `json:"serverList"`
|
||
|
}
|