This commit is contained in:
aozhiwei 2021-11-25 12:18:04 +08:00
parent de9e460af2
commit 3821059595

View File

@ -6,79 +6,82 @@ class User(object):
def __init__(self): def __init__(self):
self.apis = [ self.apis = [
{ {
'desc': '登录login', 'name': 'login',
'group': 'User', 'desc': '登录',
'url': 'webapp/index.php?c=User&a=login', 'group': 'User',
'params': [ 'url': 'webapp/index.php?c=User&a=login',
_common.ReqHead(), 'params': [
], _common.ReqHead(),
'response': [ ],
_common.RspHead(), 'response': [
['info',_common.UserInfo(), '用户信息'] _common.RspHead(),
] ['info',_common.UserInfo(), '用户信息']
}, ]
{ },
'desc': '客户端战报clientBattleReport', {
'group': 'User', 'name': 'clientBattleReport',
'url': 'webapp/index.php?c=User&a=clientBattleReport', 'desc': '客户端战报',
'params': [ 'group': 'User',
_common.ReqHead(), 'url': 'webapp/index.php?c=User&a=clientBattleReport',
], 'params': [
'response': [ _common.ReqHead(),
_common.RspHead(), ],
] 'response': [
}, _common.RspHead(),
{ ]
'desc': '获取机器人信息getRobotInfo', },
'group': 'User', {
'url': 'webapp/index.php?c=User&a=getRobotInfo', 'name': 'getRobotInfo',
'params': [ 'desc': '获取机器人信息',
_common.ReqHead(), 'group': 'User',
], 'url': 'webapp/index.php?c=User&a=getRobotInfo',
'response': [ 'params': [
_common.RspHead(), _common.ReqHead(),
['!member_list', _common.RobotInfo(), '机器人数据'], ],
['!sin_member', _common.RobotMetaInfo(), '机器人列表'], 'response': [
['num', 0, '货币数量'], _common.RspHead(),
] ['!member_list', _common.RobotInfo(), '机器人数据'],
}, ['!sin_member', _common.RobotMetaInfo(), '机器人列表'],
['num', 0, '货币数量'],
]
},
] ]
self.internalApis = [ self.internalApis = [
{ {
'desc': '服务器战报(客户端不用处理)battleReport', 'desc': '服务器战报(客户端不用处理)battleReport',
'group': 'User', 'group': 'User',
'url': 'webapp/index.php?c=User&a=battleReport', 'url': 'webapp/index.php?c=User&a=battleReport',
'params': [ 'params': [
_common.ReqHead(), _common.ReqHead(),
['map_id', 0, '地图id'], ['map_id', 0, '地图id'],
['map_tpl_name', '', '地图模板名'], ['map_tpl_name', '', '地图模板名'],
['room_uuid', 0, '房间唯一id'], ['room_uuid', 0, '房间唯一id'],
['map_name', '', '地图名'], ['map_name', '', '地图名'],
['game_time', 0, '游戏时间'], ['game_time', 0, '游戏时间'],
['hurt', 0, '收到伤害'], ['hurt', 0, '收到伤害'],
['rank', 0, '排名'], ['rank', 0, '排名'],
['kills', 0, '击杀数'], ['kills', 0, '击杀数'],
['harm', 0, '伤害输出'], ['harm', 0, '伤害输出'],
['add_HP', 0, '治疗'], ['add_HP', 0, '治疗'],
['alive_time', 0, '存活时间'], ['alive_time', 0, '存活时间'],
['team_status', 0, '是否是组队状态'], ['team_status', 0, '是否是组队状态'],
['snipe_kill', 0, '狙击枪击杀数'], ['snipe_kill', 0, '狙击枪击杀数'],
['rifle_kill', 0, '步枪击杀数'], ['rifle_kill', 0, '步枪击杀数'],
['pistol_kill', 0, '手枪击杀数'], ['pistol_kill', 0, '手枪击杀数'],
['submachine_kill', 0, '冲锋枪击杀数'], ['submachine_kill', 0, '冲锋枪击杀数'],
['rescue_member', 0, '救起队友次数'], ['rescue_member', 0, '救起队友次数'],
['coin_num', 0, '金币'], ['coin_num', 0, '金币'],
['rank_score', 0, '排位积分'], ['rank_score', 0, '排位积分'],
['pass_score', 0, '通行证积分'], ['pass_score', 0, '通行证积分'],
['items', 0, '道具|分割'], ['items', 0, '道具|分割'],
], ],
'response': [ 'response': [
_common.RspHead(), _common.RspHead(),
['kill_his', 0, '历史最高击杀数'], ['kill_his', 0, '历史最高击杀数'],
['alive_time_his', 0, '历史最高存活时间'], ['alive_time_his', 0, '历史最高存活时间'],
['harm_his', 0, '历史最高伤害'], ['harm_his', 0, '历史最高伤害'],
['add_HP_his', 0, '历史最高治疗'], ['add_HP_his', 0, '历史最高治疗'],
] ]
}, },
] ]