package game import ( "github.com/gogf/gf/v2/frame/g" "tyj_admin/internal/model/entity" ) type RoleSearchReq struct { g.Meta `path:"/basicinfo/rolelist" tags:"账号的所有角色" method:"get" summary:"角色列表"` Account string `p:"account" v:"required#账号ID不能为空"` } type RoleSearchRes struct { g.Meta `mime:"application/json"` RoleList []*entity.RolePost `json:"list"` } type RoleDetailReq struct { g.Meta `path:"/basicinfo/detail" tags:"角色详情" method:"get" summary:"详情"` Uid int32 `p:"Uid" v:"required#角色ID不能为空"` Channel int `p:"channel" v:"required#渠道不能为空"` } type RoleDetailRes struct { g.Meta `mime:"application/json"` RoleDetail *entity.RoleDetail `json:"roleDetail"` } type RoleOnlineReq struct { g.Meta `path:"/basicinfo/online" tags:"在线列表" method:"get" summary:"玩家在线列表"` ServerId int32 `p:"serverId" v:"required#服务器ID不能为空"` } type RoleOnlineRes struct { g.Meta `mime:"application/json"` Onlines []*entity.Online `json:"onlines"` } type AccountReq struct { g.Meta `path:"/basicinfo/account" tags:"账号数据" method:"get" summary:"总服账号数据"` Account string `p:"account"` Tel string `p:"tel"` Ident string `p:"ident"` Name string `p:"name"` } type AccountRes struct { g.Meta `mime:"application/json"` Accounts []*entity.AccountInfo `json:"list"` }