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 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"` } 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"` }