86 lines
2.8 KiB
Python
86 lines
2.8 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': 'infoNew',
|
|
'desc': '获取赛季信息',
|
|
'group': 'Season',
|
|
'url': 'webapp/index.php?c=Season&a=infoNew',
|
|
'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(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
['info', _common.SeasonRank(), '赛季排行信息'],
|
|
]
|
|
},{
|
|
'name': 'getDataInfo',
|
|
'desc': '获取赛季基本信息',
|
|
'group': 'Season',
|
|
'url': 'webapp/index.php?c=Season&a=getDataInfo',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
['info', _common.SeasonData(), '赛季基本信息'],
|
|
]
|
|
},{
|
|
'name': 'getHeroInfo',
|
|
'desc': '获取赛季基本信息',
|
|
'group': 'Season',
|
|
'url': 'webapp/index.php?c=Season&a=getHeroInfo',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
['!info', [_common.SeasonHero()], '赛季使用英雄信息'],
|
|
]
|
|
},
|
|
{
|
|
'name': 'getMissionReward',
|
|
'desc': '获取赛季任务奖励',
|
|
'group': 'Season',
|
|
'url': 'webapp/index.php?c=Season&a=getMissionReward',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
['award', _common.Award(), '奖励信息'],
|
|
['property_chg', _common.PropertyChg(), '属性变更'],
|
|
]
|
|
},
|
|
|
|
]
|