game2006api/doc/Ranking.py
hujiabin ae2f4264c1 1
2024-02-06 16:53:55 +08:00

53 lines
1.9 KiB
Python

# -*- coding: utf-8 -*-
import _common
class Ranking(object):
def __init__(self):
self.apis = [
{
'name': 'rankingList',
'desc': '获取排行榜',
'group': 'Ranking',
'url': 'webapp/index.php?c=Ranking&a=rankingList',
'params': [
_common.ReqHead(),
['class', 0, ' 1:总榜 2:日榜 3:周榜 '],
['type', 0, ' 1:场次榜 2:吃鸡榜 3:mvp榜 4:前三名榜 5:击杀榜'],
],
'response': [
_common.RspHead(),
['data', _common.RankingList(), '排行榜数据']
]
},
{
'name': 'getRankStatus',
'desc': '获得排位的状态',
'group': 'Ranking',
'url': 'webapp/index.php?c=Ranking&a=getRankStatus',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
['status', 0, '0:常规状态 1:引导初始排位 2:赛季初,需结算上个赛季'],
['is_rank', 0, '1:赛季开始了 0:赛季未开始'],
['countdown', 0, '下赛季倒计时(秒) 0 表示这赛季还未结束'],
]
},
{
'name': 'resetRankGainAward',
'desc': '重置段位获取赛季奖励',
'group': 'Ranking',
'url': 'webapp/index.php?c=Ranking&a=resetRankGainAward',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
['property_chg', _common.PropertyChg(), '属性变更'],
]
}
]