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.
113 lines
2.9 KiB
113 lines
2.9 KiB
package game |
|
|
|
import "github.com/gogf/gf/v2/frame/g" |
|
|
|
type GetRankAwardReq struct { |
|
g.Meta `path:"/rankAward/get" tags:"排行榜奖励" method:"post" summary:"获取排行榜奖励"` |
|
Id int32 `p:"id"` |
|
Type int32 `p:"type"` |
|
} |
|
|
|
type GetRankAwardRes struct { |
|
g.Meta `mime:"application/json"` |
|
RankAward []map[string]interface{} `json:"rankAward"` |
|
} |
|
|
|
type UpdateRankAwardReq struct { |
|
g.Meta `path:"/rankAward/update" tags:"排行榜奖励" method:"post" summary:"更新排行榜奖励"` |
|
RankAward map[string]interface{} `p:"rankAward"` |
|
} |
|
|
|
type UpdateRankAwardRes struct { |
|
g.Meta `mime:"application/json"` |
|
} |
|
|
|
type InsertRankAwardReq struct { |
|
g.Meta `path:"/rankAward/insert" tags:"排行榜奖励" method:"post" summary:"添加排行榜奖励"` |
|
RankAward map[string]interface{} `p:"rankAward"` |
|
} |
|
|
|
type InsertRankAwardRes struct { |
|
g.Meta `mime:"application/json"` |
|
} |
|
|
|
type GetRankReq struct { |
|
g.Meta `path:"/rank/get" tags:"排行榜" method:"post" summary:"获取排行榜"` |
|
Type int32 `p:"type"` |
|
Style int32 `p:"style"` |
|
Year int32 `p:"year"` |
|
} |
|
|
|
type GetRankRes struct { |
|
g.Meta `mime:"application/json"` |
|
Rank []map[string]interface{} `json:"rank"` |
|
} |
|
|
|
type UpdateRankReq struct { |
|
g.Meta `path:"/rank/update" tags:"排行榜" method:"post" summary:"更新排行榜"` |
|
Rank map[string]interface{} `p:"rank"` |
|
} |
|
|
|
type UpdateRankRes struct { |
|
g.Meta `mime:"application/json"` |
|
} |
|
|
|
type InsertRankReq struct { |
|
g.Meta `path:"/rank/insert" tags:"排行榜" method:"post" summary:"添加排行榜"` |
|
Rank map[string]interface{} `p:"rank"` |
|
} |
|
|
|
type InsertRankRes struct { |
|
g.Meta `mime:"application/json"` |
|
} |
|
|
|
type DelRankReq struct { |
|
g.Meta `path:"/rank/del" tags:"排行榜" method:"post" summary:"删除排行榜"` |
|
Rank string `p:"rank"` |
|
} |
|
|
|
type DelRankRes struct { |
|
g.Meta `mime:"application/json"` |
|
} |
|
|
|
type CheckRankReq struct { |
|
g.Meta `path:"/rank/check" tags:"排行榜" method:"post" summary:"查询排行榜"` |
|
Rank map[string]interface{} `p:"rank"` |
|
} |
|
|
|
type CheckRankRes struct { |
|
g.Meta `mime:"application/json"` |
|
Rank int64 `json:"rank"` |
|
StringId string `json:"stringId"` |
|
} |
|
|
|
type AddRankGroupReq struct { |
|
g.Meta `path:"/rank/addGroup" tags:"排行榜" method:"post" summary:"添加排行榜组"` |
|
StageGroupId int `p:"stageGroupId"` |
|
Name string `p:"name"` |
|
} |
|
|
|
type AddRankGroupRes struct { |
|
g.Meta `mime:"application/json"` |
|
} |
|
|
|
type GetRankGroupReq struct { |
|
g.Meta `path:"/rank/getGroup" tags:"排行榜" method:"post" summary:"获取排行榜组"` |
|
Name string `p:"name"` |
|
} |
|
|
|
type GetRankGroupRes struct { |
|
g.Meta `mime:"application/json"` |
|
Groups map[string]interface{} `p:"groups"` |
|
} |
|
|
|
type GetGameRankReq struct { |
|
g.Meta `path:"/rank/getGameRank" tags:"排行榜" method:"get" summary:"获取游戏排行榜"` |
|
Name string `p:"name"` |
|
ServerId int `p:"serverId" v:"required|min:1#服务器ID不能为空"` |
|
} |
|
|
|
type GetGameRankRes struct { |
|
g.Meta `mime:"application/json"` |
|
Groups []map[string]interface{} `json:"list"` |
|
}
|
|
|