39 lines
1.2 KiB
Python
39 lines
1.2 KiB
Python
# -*- coding: utf-8 -*-
|
|
|
|
import _common
|
|
|
|
class History(object):
|
|
|
|
def __init__(self):
|
|
self.apis = [
|
|
{
|
|
'name': 'queryHistoryBattle',
|
|
'desc': '查询历史战绩',
|
|
'group': 'History',
|
|
'url': 'webapp/index.php?c=Battle&a=queryHistoryBattle',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
['last_idx', '', '回传last_idx, 第一次打开传空'],
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
['!rows', [_common.HisBattle()], '历史战绩'],
|
|
['page', _common.Page(), '分页信息']
|
|
]
|
|
},
|
|
{
|
|
'name': 'getBattleReport',
|
|
'desc': '获取战报信息',
|
|
'group': 'History',
|
|
'url': 'webapp/index.php?c=Battle&a=getBattleReport',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
['battle_uuid', '', '战斗唯一id'],
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
['battle_result', _common.BattleReport(), '战斗结算信息']
|
|
]
|
|
},
|
|
]
|