37 lines
1.0 KiB
Python
37 lines
1.0 KiB
Python
# -*- coding: utf-8 -*-
|
|
|
|
import _common
|
|
|
|
class Match(object):
|
|
|
|
def __init__(self):
|
|
self.apis = [
|
|
{
|
|
'name': 'getMatchInfo',
|
|
'desc': '获取匹配信息',
|
|
'group': 'Match',
|
|
'url': 'webapp/index.php?c=Match&a=getMatchInfo',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
['team_uuid', '', '队伍唯一id'],
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
['info', _common.MatchInfo(), '匹配信息'],
|
|
]
|
|
},
|
|
{
|
|
'name': 'cancel',
|
|
'desc': '取消匹配',
|
|
'group': 'Match',
|
|
'url': 'webapp/index.php?c=Match&a=cancel',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
['team_uuid', '', '队伍唯一id'],
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
]
|
|
}
|
|
]
|