54 lines
1.7 KiB
Python
54 lines
1.7 KiB
Python
# -*- coding: utf-8 -*-
|
|
|
|
import _common
|
|
|
|
class EventRanking(object):
|
|
|
|
def __init__(self):
|
|
self.apis = [
|
|
{
|
|
'name': 'eventRankingList',
|
|
'desc': '排行活动列表',
|
|
'group': 'EventRanking',
|
|
'url': 'webapp/index.php?c=EventRanking&a=eventRankingList',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
['!list', [_common.EventRankingList()], '活动列表'],
|
|
['ceg', 0, 'ceg总数'],
|
|
]
|
|
},
|
|
{
|
|
'name': 'activityRankingList',
|
|
'desc': '活动排行榜',
|
|
'group': 'EventRanking',
|
|
'url': 'webapp/index.php?c=EventRanking&a=activityRankingList',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
['wave', 0, '活动轮数'],
|
|
['type', 0, '排行榜类型 1:生存榜 2:击杀榜 3:英雄升级 4:英雄升阶'],
|
|
['page', 0, '页码(可选)'],
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
['ranking_list', _common.RankingListEx(), '排行榜数据']
|
|
]
|
|
},
|
|
{
|
|
'name': 'settlementRankingAward',
|
|
'desc': '活动结算',
|
|
'group': 'EventRanking',
|
|
'url': 'webapp/index.php?c=EventRanking&a=settlementRankingAward',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
]
|
|
},
|
|
|
|
|
|
]
|