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.

242 lines
6.6 KiB

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 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"`
Date string `json:"date"`
Channel string `json:"channel"`
Server int `json:"server"`
}
type RoleOnlineTopRes struct {
g.Meta `mime:"application/json"`
Onlines []RoleOnlineTop `json:"onlines"`
Total int `json:"total"`
}
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"`
ServerId int `p:"serverId"`
common.PageReq
}
type GetLoginOutRes struct {
g.Meta `mime:"application/json"`
Logs []entity.LoginLogoutInfo `json:"logs"`
common.ListRes
}
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"`
ServerId int `p:"serverId" `
common.PageReq
}
type GetLoginOutLogRes struct {
g.Meta `mime:"application/json"`
Logs []entity.LoginOutLog `json:"logs"`
common.ListRes
}
type GetItemLogReq struct {
g.Meta `path:"/itemRecord/get" tags:"获取物品记录" method:"get" summary:"获取物品记录"`
Uid int64 `p:"uid"`
Id string `p:"id"`
Account string `p:"account"`
ItemId int `p:"ItemId"`
ServerId int `p:"serverId" `
common.PageReq
}
type GetItemLogRes struct {
g.Meta `mime:"application/json"`
Logs []entity.ItemIncomeExpenseRecords `json:"logs"`
common.ListRes
}
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 GetItemLogTwoReq struct {
g.Meta `path:"/itemRecord/getTwo" tags:"获取物品记录" method:"get" summary:"获取物品记录"`
Uid int64 `p:"uid"`
Id string `p:"id"`
Account string `p:"account"`
ItemId int `p:"itemId"`
ServerId int `p:"serverId" `
common.PageReq
}
type ItemRecordsTwo struct {
entity.ItemRecordsTwo
StringId string `json:"stringId"`
UniqueId int64 `json:"uniqueId"`
}
type GetItemLogTwoRes struct {
g.Meta `mime:"application/json"`
Logs []ItemRecordsTwo `json:"logs"`
common.ListRes
}
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"`
}