榜单管理
查询全局榜单
Changed on查询全局榜单,支持财富榜、魅力榜、房间榜。
周期类型说明:
- 当前周期:day(今日)、week(本周)、month(本月)
- 历史周期:yesterday(昨日)、lastWeek(上周)、lastMonth(上月)
get/api/rank/queryGlobalRank
Request
- Base URLhttp://api.oloo.live
- URLhttp://api.oloo.live/api/rank/queryGlobalRank
- Authnone declared
Query parameters
rankType'wealth' | 'charm' | 'room' required
榜单类型:wealth-财富榜,charm-魅力榜,room-房间榜
uidinteger
用户ID或房间ID,用于查询自己的排名
cycleType'day' | 'week' | 'month' | 'yesterday' | 'lastWeek' | 'lastMonth'
周期类型
topNunknown
返回条数,默认20,范围1-100
partitionIdinteger
分区ID:不传或0-全球榜,>0-指定二级地区组榜
Response
查询成功
Example response
{
"rankList": [
{
"uid": 123456,
"nick": "小明",
"appNo": "A10086",
"gender": 1,
"score": 99999,
"scoreStr": "9.9万",
"rank": 1,
"regionId": 86,
"charmLevel": 10,
"wealthLevel": 15,
"diffScore": 1000
}
],
"myRank": {
"uid": 123456,
"nick": "小明",
"appNo": "A10086",
"gender": 1,
"score": 99999,
"scoreStr": "9.9万",
"rank": 1,
"regionId": 86,
"charmLevel": 10,
"wealthLevel": 15,
"diffScore": 1000
},
"total": 100
}Changes
- info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- info