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.

272 lines
7.4 KiB

package game
import (
"github.com/gogf/gf/v2/frame/g"
)
type GetGameUpdateUrlReq struct {
g.Meta `path:"/updateUrl/get" tags:"外部接口" method:"get" summary:"强更地址"`
Channel string `p:"channel"`
}
type GetGameUpdateUrlRes struct {
g.Meta `mime:"application/json"`
Url string `json:"url"`
}
/*v:"required#版本不能为空"*/
type GetOutIdReq struct {
g.Meta `path:"/outId/get" tags:"外部接口" method:"get" summary:"获取uid"`
Uid int64 `p:"uid"`
}
type GetOutIdRes struct {
g.Meta `mime:"application/json"`
Id int64 `json:"publicId"`
}
type GetItemIdReq struct {
g.Meta `path:"/uniqueId/get" tags:"外部接口" method:"get" summary:"获取id"`
Type int64 `p:"type" description:"类型、"`
}
type GetItemIdRes struct {
g.Meta `mime:"application/json"`
Id int64 `json:"uniqueId"`
}
type LoginOutReq struct {
g.Meta `path:"/loginOut" tags:"外部接口" method:"post" summary:"添加登录登出记录"`
Uid int64 `p:"uid"`
State int `p:"state"`
Day int `p:"day"`
GameTime int `p:"gameTime"`
Scale int `p:"scale"`
VillagerNum int `p:"villagerNum"`
Prosperity int `p:"prosperity"`
Copper int `p:"copper"`
GoldIngot int `p:"goldIngot"`
BaseFood int `p:"baseFood"`
Server int `p:"serverId"`
Name string `p:"valleyName"`
VouchersNum int `p:"vouchersNum"`
RechargeTotal int `p:"rechargeTotal"`
StoreSum int `p:"storeSum"`
StoneAmount int `p:"stoneAmount"`
}
type LoginOutRes struct {
g.Meta `mime:"application/json"`
}
type RegisterReq struct {
g.Meta `path:"/register" tags:"外部接口" method:"post" summary:"添加注册记录"`
Account string `p:"account"`
Uid int64 `p:"uid"`
CreateType int `p:"createType"`
Platform int `p:"platform"`
Channel string `p:"channel"`
Server int `p:"server"`
OAID string `p:"OAID"`
Idfv string `p:"idfv"`
AndroidId string `p:"androidId"`
}
type RegisterRes struct {
g.Meta `mime:"application/json"`
}
type UnitChangeNameReq struct {
g.Meta `path:"/unitChangeName" tags:"外部接口" method:"post" summary:"修改村庄名称"`
Uid int64 `p:"uid"`
Server int `p:"server"`
Name string `p:"name"`
}
type UnitChangeNameRes struct {
g.Meta `mime:"application/json"`
}
type ItemRecordReq struct {
g.Meta `path:"/itemRecord" tags:"外部接口" method:"post" summary:"添加物品流向记录"`
Uid int64 `p:"uid"`
ItemId int32 `p:"itemId"`
Num int32 `p:"num"`
Way string `p:"way"`
State int32 `p:"state"`
Server int `p:"server"`
OldTotal int `p:"oldTotal"`
}
type ItemRecordRes struct {
g.Meta `mime:"application/json"`
}
type ShopRecordReq struct {
g.Meta `path:"/shopRecord" tags:"外部接口" method:"post" summary:"添加商城流向记录"`
Uid int64 `p:"uid"`
ItemId int `p:"itemId"`
Price int `p:"price"`
Num int32 `p:"num"`
ServerId int32 `p:"serverId"`
ConfigType int32 `p:"configType"`
}
type ShopRecordRes struct {
g.Meta `mime:"application/json"`
}
type GetPostsReq struct {
g.Meta `path:"/getPosts" tags:"外部接口" method:"get" summary:"重置服务器列表"`
}
type GetPostsRes struct {
g.Meta `mime:"application/json"`
List []map[string]interface{} `json:"list"`
}
type AddOutCCDReq struct {
g.Meta `path:"/outCcd/addCCD" tags:"外部接口" 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"`
State uint `p:"state"`
Url string `p:"url"`
}
type AddOutCCDRes struct {
}
type SetOpenIdReq struct {
g.Meta `path:"/setOpenId" tags:"外部接口" method:"get" summary:"先行服白名单"`
Filename string `p:"filename"`
OpenId string `p:"openId"`
InitUnit int `p:"initUnit"`
}
type SetOpenIdRes struct {
g.Meta `mime:"application/json"`
}
type GetOpenIdReq struct {
g.Meta `path:"/getOpenId" tags:"外部接口" method:"get" summary:"先行服白名单"`
Filename string `p:"filename"`
OpenId string `p:"openId"`
}
type GetOpenIdRes struct {
g.Meta `mime:"application/json"`
State int `json:"state"`
}
type ItemRecordTwoReq struct {
g.Meta `path:"/itemRecordTwo" tags:"外部接口" method:"post" summary:"添加物品流向记录"`
Uid int64 `p:"uid"`
ItemId int32 `p:"itemId"`
Num int32 `p:"num"`
Way string `p:"way"`
State int32 `p:"state"`
Server int `p:"server"`
OldTotal int `p:"oldTotal"`
}
type ItemRecordTwoRes struct {
g.Meta `mime:"application/json"`
}
type CheckUserReq struct {
g.Meta `path:"/user/check" tags:"账号" method:"get" summary:"查询账号"`
Username string `p:"username" v:"required#用户名不能为空"`
Password string `p:"password" v:"required#密码不能为空"`
}
type CheckUserRes struct {
g.Meta `mime:"application/json"`
Exist int32 `p:"exist"`
}
type UserLogReq struct {
g.Meta `path:"/user/log" tags:"账号" method:"get" summary:"账号使用记录"`
}
type UserLogRes struct {
g.Meta `mime:"application/json"`
}
type ReviewStateReq struct {
g.Meta `path:"/reviewState" tags:"小景" method:"get" summary:"审核状态"`
ServerId int32 `p:"serverId" `
State int32 `p:"state" `
}
type SmallLayoutBlueprint struct {
ArtID int64 `json:"ArtID"`
OwnerId int64 `json:"OwnerId"`
CreateTime int64 `json:"CreateTime"`
LikeInfos []int64 `json:"LikeInfos"`
SubscribeInfos []int64 `json:"SubscribeInfos"`
Name string `json:"Name"`
State int32 `json:"State"`
SmallLayoutInfos []SmallLayoutInfo `json:"SmallLayoutInfos"`
}
type SmallLayoutInfo struct {
GameUnitType int32 `json:"GameUnitType"`
ConfigId int32 `json:"ConfigId"`
PosX int32 `json:"PosX"`
PosY int32 `json:"PosY"`
IsFlip bool `json:"IsFlip"`
SkinId int32 `json:"SkinId"`
}
type ReviewStateRes struct {
g.Meta `mime:"application/json"`
ServerId int32 `json:"serverId"`
SmallLayoutBlueprint []map[string]interface{} `json:"SmallLayoutBlueprint"`
}
type SetReviewStateReq struct {
g.Meta `path:"/setReviewState" tags:"小景" method:"get" summary:"审核状态"`
ServerId int32 `p:"serverId" `
ArtID int64 `p:"ArtID" `
State int32 `p:"State" `
}
type SetReviewStateRes struct {
g.Meta `mime:"application/json"`
ServerId int32 `json:"serverId"`
Result int32 `json:"result"`
}
type GetOfficialViewReq struct {
g.Meta `path:"/getOfficialView" tags:"小景" method:"post" summary:"获取官服小景"`
}
type GetOfficialViewRes struct {
g.Meta `mime:"application/json"`
JsonData string `json:"jsonData"`
}
type SetOfficialViewReq struct {
g.Meta `path:"/setOfficialView" tags:"小景" method:"post" summary:"获取官服小景"`
JsonData string `json:"jsonData"`
}
type SetOfficialViewRes struct {
g.Meta `mime:"application/json"`
IsSuccess int32 `json:"isSuccess"`
}
type SendOfficialViewReq struct {
g.Meta `path:"/sendOfficialView" tags:"小景" method:"get" summary:"获取官服小景"`
SeverId int32 `json:"serverId"`
}
type SendOfficialViewRes struct {
g.Meta `mime:"application/json"`
Message string `json:"message"`
}