70 lines
1.7 KiB
Python
70 lines
1.7 KiB
Python
# -*- coding: utf-8 -*-
|
|
|
|
import _common
|
|
|
|
class Team(object):
|
|
|
|
def __init__(self):
|
|
self.apis_ = [
|
|
{
|
|
'desc': 'createTeam',
|
|
'group': 'Team',
|
|
'url': 'webapp/index.php?c=Team&a=createTeam',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
['node_id', 0, '节点id'],
|
|
['map_id', 0, '地图id'],
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
['team_info', _common.TeamInfo(), '队伍信息'],
|
|
]
|
|
},
|
|
{
|
|
'desc': 'teamInfo',
|
|
'group': 'Team',
|
|
'url': 'webapp/index.php?c=Team&a=teamInfo',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
['team_uuid', '', '队伍唯一id'],
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
['team_info', _common.TeamInfo(), '队伍信息'],
|
|
]
|
|
},
|
|
{
|
|
'desc': 'joinTeam',
|
|
'group': 'Team',
|
|
'url': 'webapp/index.php?c=Team&a=joinTeam',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
]
|
|
},
|
|
{
|
|
'desc': 'leaveTeam',
|
|
'group': 'Team',
|
|
'url': 'webapp/index.php?c=Team&a=leaveTeam',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
]
|
|
},
|
|
{
|
|
'desc': 'startGame',
|
|
'group': 'Team',
|
|
'url': 'webapp/index.php?c=Team&a=startGame',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
]
|
|
},
|
|
]
|