351 lines
8.9 KiB
Python
351 lines
8.9 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(),
|
|
]
|
|
},
|
|
{
|
|
'desc': 'addHeroToDB',
|
|
'group': 'Role',
|
|
'url': 'webapp/index.php?c=Role&a=addHeroToDB',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
]
|
|
},
|
|
{
|
|
'desc': 'addAllHero',
|
|
'group': 'Role',
|
|
'url': 'webapp/index.php?c=Role&a=addAllHero',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
]
|
|
},
|
|
{
|
|
'desc': 'addHeroSkin',
|
|
'group': 'Role',
|
|
'url': 'webapp/index.php?c=Role&a=addHeroSkin',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
]
|
|
},
|
|
{
|
|
'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': 'bioBattleReport',
|
|
'group': 'Role',
|
|
'url': 'webapp/index.php?c=Role&a=bioBattleReport',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
]
|
|
},
|
|
{
|
|
'desc': 'oldBattleReport',
|
|
'group': 'Role',
|
|
'url': 'webapp/index.php?c=Role&a=oldBattleReport',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
]
|
|
},
|
|
{
|
|
'desc': 'historyRecord',
|
|
'group': 'Role',
|
|
'url': 'webapp/index.php?c=Role&a=historyRecord',
|
|
'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': 'historyInfo',
|
|
'group': 'Role',
|
|
'url': 'webapp/index.php?c=Role&a=historyInfo',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
]
|
|
},
|
|
{
|
|
'desc': 'collectReward',
|
|
'group': 'Role',
|
|
'url': 'webapp/index.php?c=Role&a=collectReward',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
]
|
|
},
|
|
{
|
|
'desc': 'collectDoubleReward',
|
|
'group': 'Role',
|
|
'url': 'webapp/index.php?c=Role&a=collectDoubleReward',
|
|
'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': 'getVideoReward',
|
|
'group': 'Role',
|
|
'url': 'webapp/index.php?c=Role&a=getVideoReward',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
]
|
|
},
|
|
{
|
|
'desc': 'getDeskReward',
|
|
'group': 'Role',
|
|
'url': 'webapp/index.php?c=Role&a=getDeskReward',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
]
|
|
},
|
|
{
|
|
'desc': 'getShareVideoReward',
|
|
'group': 'Role',
|
|
'url': 'webapp/index.php?c=Role&a=getShareVideoReward',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
]
|
|
},
|
|
{
|
|
'desc': 'getWatchAdReward',
|
|
'group': 'Role',
|
|
'url': 'webapp/index.php?c=Role&a=getWatchAdReward',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
]
|
|
},
|
|
{
|
|
'desc': 'addVideotimes',
|
|
'group': 'Role',
|
|
'url': 'webapp/index.php?c=Role&a=addVideotimes',
|
|
'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(),
|
|
]
|
|
},
|
|
]
|