198 lines
5.0 KiB
Python
198 lines
5.0 KiB
Python
# -*- coding: utf-8 -*-
|
|
|
|
import _common
|
|
|
|
class Role(object):
|
|
|
|
def __init__(self):
|
|
self.apis = [
|
|
{
|
|
'desc': '获取角色信息roleInfo',
|
|
'group': 'Role',
|
|
'url': 'webapp/index.php?c=Role&a=roleInfo',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
_common.RoleInfo(),
|
|
]
|
|
},
|
|
{
|
|
'desc': '客户端战报clientBattleReport',
|
|
'group': 'Role',
|
|
'url': 'webapp/index.php?c=Role&a=clientBattleReport',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
]
|
|
},
|
|
{
|
|
'desc': 'battleReport',
|
|
'group': 'Role',
|
|
'url': 'webapp/index.php?c=Role&a=battleReport',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
]
|
|
},
|
|
{
|
|
'desc': 'shareGame',
|
|
'group': 'Role',
|
|
'url': 'webapp/index.php?c=Role&a=shareGame',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
]
|
|
},
|
|
{
|
|
'desc': 'getPreSettlementInfo',
|
|
'group': 'Role',
|
|
'url': 'webapp/index.php?c=Role&a=getPreSettlementInfo',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
]
|
|
},
|
|
{
|
|
'desc': 'getRobotInfo',
|
|
'group': 'Role',
|
|
'url': 'webapp/index.php?c=Role&a=getRobotInfo',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
]
|
|
},
|
|
{
|
|
'desc': 'getFightReward',
|
|
'group': 'Role',
|
|
'url': 'webapp/index.php?c=Role&a=getFightReward',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
]
|
|
},
|
|
{
|
|
'desc': 'getNewHandReward',
|
|
'group': 'Role',
|
|
'url': 'webapp/index.php?c=Role&a=getNewHandReward',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
]
|
|
},
|
|
{
|
|
'desc': 'getSessionId',
|
|
'group': 'Role',
|
|
'url': 'webapp/index.php?c=Role&a=getSessionId',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
]
|
|
},
|
|
{
|
|
'desc': 'exchangeCoin',
|
|
'group': 'Role',
|
|
'url': 'webapp/index.php?c=Role&a=exchangeCoin',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
]
|
|
},
|
|
{
|
|
'desc': 'saveNewbie',
|
|
'group': 'Role',
|
|
'url': 'webapp/index.php?c=Role&a=saveNewbie',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
]
|
|
},
|
|
{
|
|
'desc': 'updateDailyAD',
|
|
'group': 'Role',
|
|
'url': 'webapp/index.php?c=Role&a=updateDailyAD',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
]
|
|
},
|
|
{
|
|
'desc': 'getFightEquip',
|
|
'group': 'Role',
|
|
'url': 'webapp/index.php?c=Role&a=getFightEquip',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
]
|
|
},
|
|
{
|
|
'desc': 'addGiveMeFive',
|
|
'group': 'NPlayerInfo',
|
|
'url': 'webapp/index.php?c=NPlayerInfo&a=addGiveMeFive',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
]
|
|
},
|
|
{
|
|
'desc': 'getPlayerInfo',
|
|
'group': 'NPlayerInfo',
|
|
'url': 'webapp/index.php?c=NPlayerInfo&a=getPlayerInfo',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
]
|
|
},
|
|
{
|
|
'desc': 'changeHIFrameHero',
|
|
'group': 'NPlayerInfo',
|
|
'url': 'webapp/index.php?c=NPlayerInfo&a=changeHIFrameHero',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
]
|
|
},
|
|
{
|
|
'desc': 'changeName',
|
|
'group': 'NPlayerInfo',
|
|
'url': 'webapp/index.php?c=NPlayerInfo&a=changeName',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
]
|
|
},
|
|
]
|