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

54 lines
1.9 KiB
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# -*- 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(),
['mode', 0, ' 1:4v4 2pvp '],
['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(), '属性变更'],
]
}
]