game2006api/doc/Ranking.py
2022-10-18 11:18:41 +08:00

78 lines
2.8 KiB
Python
Raw 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(),
['type', 0, '排行榜类型 1积分榜 10:战斗时间']
],
'response': [
_common.RspHead(),
['ranking_list', _common.RankingList(), '排行榜数据']
]
},
{
'name': 'getOpenList',
'desc': '获取已开启的活动榜',
'group': 'Ranking',
'url': 'webapp/index.php?c=Ranking&a=getOpenList',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
['!list', [0], '1:生存榜 2:击杀榜 3:英雄升级 4:英雄升阶'],
]
},
{
'name': 'activityRankingList',
'desc': '获取内试活动排行榜',
'group': 'Ranking',
'url': 'webapp/index.php?c=Ranking&a=activityRankingList',
'params': [
_common.ReqHead(),
['type', 0, '排行榜类型 1:生存榜 2:击杀榜 3:英雄升级 4:英雄升阶']
],
'response': [
_common.RspHead(),
['ranking_list', _common.RankingListEx(), '排行榜数据']
]
},
{
'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:不是']
]
},
{
'name': 'resetRankGainAward',
'desc': '重置段位获取赛季奖励',
'group': 'Ranking',
'url': 'webapp/index.php?c=Ranking&a=resetRankGainAward',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
['property_chg', _common.PropertyChg(), '属性变更'],
]
}
]