package game import ( "github.com/gogf/gf/v2/frame/g" "tyj_admin/api/v1/common" "tyj_admin/internal/model/entity" ) type RoleSearchReq struct { g.Meta `path:"/basicinfo/rolelist" tags:"账号的所有角色" method:"get" summary:"角色列表"` Id string `p:"id"` Uid int `p:"uid"` Account string `p:"account"` PageNum int64 `p:"pageNum"` PageSize int64 `p:"pageSize"` ServerId int32 `p:"serverId"` } type RoleSearchRes struct { g.Meta `mime:"application/json"` RoleList []map[string]interface{} `json:"list"` Total int64 `json:"total"` } //type RoleDetailReq struct { // g.Meta `path:"/basicinfo/detail" tags:"角色详情" method:"get" summary:"详情"` // Uid int64 `p:"Uid" v:"required#角色ID不能为空"` // //Channel int `p:"channel" v:"required#渠道不能为空"` //} // //type RoleDetailRes struct { // g.Meta `mime:"application/json"` // RoleDetail *entity.Unit `json:"roleDetail"` //} type RoleOnlineReq struct { g.Meta `path:"/basicinfo/online" tags:"留存记录" method:"get" summary:"玩家在线列表"` ServerId int32 `p:"serverId" ` } type RoleOnlineRes struct { g.Meta `mime:"application/json"` Onlines []interface{} `json:"onlines"` Total int `json:"total"` } type RoleOnlineTopReq struct { g.Meta `path:"/basicinfo/onlineTop" tags:"留存记录" method:"get" summary:"玩家最高在线列表"` ServerId int32 `p:"serverId" ` } type RoleOnlineTop struct { Num int `json:"num"` Server int `json:"server"` } type RoleOnlineTopRes struct { g.Meta `mime:"application/json"` Onlines []RoleOnlineTop `json:"onlines"` Total int `json:"total"` } //type AccountListReq struct { // g.Meta `path:"/basicinfo/accountList" tags:"账号数据" method:"get" summary:"总服账号数据"` // Ident string `p:"ident"` // Name string `p:"name"` //} // //type AccountListRes struct { // g.Meta `mime:"application/json"` // Accounts []*entity.Account `json:"list"` //} type AccountReq struct { g.Meta `path:"/basicinfo/account" tags:"账号数据" method:"get" summary:"账号数据"` Id string `p:"id"` Uid int `p:"uid"` Account string `p:"account"` Ident string `p:"ident"` Name string `p:"name"` GmState string `p:"gmState"` ServerId int `p:"serverId" ` common.Page64Req } type AccountRes struct { g.Meta `mime:"application/json"` Accounts []map[string]interface{} `json:"list"` common.List64Res } type GetLoginOutReq struct { g.Meta `path:"/loginOut/get" tags:"获取登录登出记录" method:"get" summary:"获取登录登出记录"` Uid string `p:"id"` Account string `p:"account"` State int32 `p:"state"` PageNum int `p:"pageNum"` PageSize int `p:"pageSize"` ServerId int `p:"serverId"` } type GetLoginOutRes struct { g.Meta `mime:"application/json"` Logs []entity.LoginLogoutInfo `json:"logs"` Total int `json:"total"` } type GetLoginOutLogReq struct { g.Meta `path:"/loginOutLog/get" tags:"获取登录登出记录" method:"get" summary:"获取登录登出记录"` Uid string `p:"uid"` Id string `p:"id"` Account string `p:"account"` State int32 `p:"state"` PageNum int `p:"pageNum"` PageSize int `p:"pageSize"` ServerId int `p:"serverId" ` } type GetLoginOutLogRes struct { g.Meta `mime:"application/json"` Logs []entity.LoginOutLog `json:"logs"` Total int `json:"total"` } type GetItemLogReq struct { g.Meta `path:"/itemRecord/get" tags:"获取物品记录" method:"get" summary:"获取物品记录"` Uid string `p:"uid"` Id string `p:"id"` Account string `p:"account"` ItemId int `p:"ItemId"` PageNum int `p:"pageNum"` PageSize int `p:"pageSize"` ServerId int `p:"serverId" ` } type GetItemLogRes struct { g.Meta `mime:"application/json"` Logs []entity.ItemIncomeExpenseRecords `json:"logs"` Total int `json:"total"` } type GetShopItemLogReq struct { g.Meta `path:"/order/shopLog" tags:"获取物品记录" method:"get" summary:"获取商店物品记录"` LowTime string `p:"startTime"` Uptime string `p:"endTime"` GM int `p:"gm"` ServerId int `p:"serverId" ` Channel string `p:"channel" ` common.PageReq } type GetShopItemLogRes struct { g.Meta `mime:"application/json"` Logs []ShopItemLog `json:"logs"` RechargeTotal int `json:"rechargeTotal"` common.ListRes } type ShopItemLog struct { ItemId int `json:"itemId" description:"物品Id"` Num int `json:"num" description:"数量"` ConfigType int `json:"config_type" description:"消耗途径"` } type GetShopItemListReq struct { g.Meta `path:"/order/shopList" tags:"获取物品记录" method:"get" summary:"获取商店物品记录"` LowTime string `p:"startTime"` Uptime string `p:"endTime"` GM int `p:"gm"` ServerId int `p:"serverId" ` Uid int `p:"uid" ` common.PageReq } type ShopItemList struct { Account string `json:"account" description:"账号"` UniqueId string `json:"uniqueId" description:"账号"` StringId string `json:"stringId" description:"账号"` entity.GameShopLog } type GetShopItemListRes struct { g.Meta `mime:"application/json"` Logs []ShopItemList `json:"logs"` common.ListRes } type GetRegisterReq struct { g.Meta `path:"/register/get" tags:"留存记录" method:"get" summary:"获取注册记录"` Uid string `p:"id"` Account string `p:"account"` PageNum int `p:"pageNum"` PageSize int `p:"pageSize"` ServerId int `p:"serverId" ` } type GetRegisterRes struct { g.Meta `mime:"application/json"` Logs []entity.GameRegister `json:"logs"` Total int `json:"total"` } type GetKeepAliveReq struct { g.Meta `path:"/keepAlive/get" tags:"留存记录" method:"get" summary:"获取留存记录"` Keep int `p:"keep"` Channel string `p:"channel"` Server int `p:"server"` CreateTime string `p:"createTime"` } type GetKeepAliveRes struct { g.Meta `mime:"application/json"` Logs []entity.KeepAlive `json:"logs"` RegisterNum int `json:"registerNum"` } type GetLiveReq struct { g.Meta `path:"/live/get" tags:"留存记录" method:"get" summary:"获取活跃记录"` Channel string `p:"channel"` Server int `p:"server"` CreateTime string `p:"createTime"` } type GetLiveRes struct { g.Meta `mime:"application/json"` RegisterTotal int `json:"registerTotal"` RegisterLogs []entity.KeepAlive `json:"registerLogs"` LiveLogs []entity.KeepAlive `json:"liveLogs"` HighLogs []entity.KeepAlive `json:"highLogs"` } type RegisterCountReq struct { g.Meta `path:"/registerNum/get" tags:"留存记录" method:"get" summary:"注册统计"` Channel string `p:"channel"` Server int `p:"server"` StartTime int64 `p:"startTime"` EndTime int64 `p:"endTime"` } type RegisterCount struct { Count int `json:"count"` Cd string `json:"cd"` Channel string `json:"channel"` } type RegisterCountRes struct { g.Meta `mime:"application/json"` RegisterList []RegisterCount `json:"registerNum"` } type UserDelReq struct { g.Meta `path:"/userDel" tags:"游戏玩家" method:"post" summary:"删除用户记录"` Account string `p:"account"` Password string `p:"password"` } type UserDelRes struct { g.Meta `mime:"application/json"` Data int `p:"data"` } type DelAccountReq struct { g.Meta `path:"/mange/delAccount" tags:"账号" method:"get" summary:"删除账号"` SrcName string `p:"SrcName"` ServerId int `p:"serverId"` Password string `p:"password"` } type DelAccountRes struct { }