50 lines
1.6 KiB
Python
50 lines
1.6 KiB
Python
# -*- coding: utf-8 -*-
|
|
|
|
import _common
|
|
|
|
class Season(object):
|
|
|
|
def __init__(self):
|
|
self.apis = [
|
|
{
|
|
'name': 'info',
|
|
'desc': '获取赛季信息',
|
|
'group': 'Season',
|
|
'url': 'webapp/index.php?c=Season&a=info',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
['!info', [_common.Season()], '赛季信息'],
|
|
]
|
|
},{
|
|
'name': 'getRankingInfo',
|
|
'desc': '获取赛季排行信息',
|
|
'group': 'Season',
|
|
'url': 'webapp/index.php?c=Season&a=getRankingInfo',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
['rank',0,'段位id']
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
['!rankList', [_common.SeasonRank()], '赛季排行信息'],
|
|
['myRanked', _common.SeasonRank(), '我的排行信息'],
|
|
]
|
|
},{
|
|
'name': 'getDataInfo',
|
|
'desc': '获取赛季基本信息',
|
|
'group': 'Season',
|
|
'url': 'webapp/index.php?c=Season&a=getDataInfo',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
['info', _common.SeasonData(), '赛季基本信息'],
|
|
]
|
|
},
|
|
|
|
]
|