This commit is contained in:
aozhiwei 2021-11-17 15:55:16 +08:00
parent 0432722df6
commit 933c7a0491
40 changed files with 2579 additions and 1 deletions

5
.gitignore vendored
View File

@ -12,4 +12,7 @@ config
__pycache__/
res
out/
public/
public/
*.postman.json
*.doc.php
apilist.json

109
doc/ActivityController.py Normal file
View File

@ -0,0 +1,109 @@
# -*- coding: utf-8 -*-
import _common
class ActivityController(object):
def __init__(self):
self.apis = [
{
'desc': 'newLuckDrawInfo',
'url': 'webapp/index.php?c=ActivityController&a=newLuckDrawInfo',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getNewLuckDraw',
'url': 'webapp/index.php?c=ActivityController&a=getNewLuckDraw',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'drawTableInfo',
'url': 'webapp/index.php?c=ActivityController&a=drawTableInfo',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getDrawTable',
'url': 'webapp/index.php?c=ActivityController&a=getDrawTable',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'doubleLuckDraw',
'url': 'webapp/index.php?c=ActivityController&a=doubleLuckDraw',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'lotteryReward',
'url': 'webapp/index.php?c=ActivityController&a=lotteryReward',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getBoxOrder',
'url': 'webapp/index.php?c=ActivityController&a=getBoxOrder',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getOrderReward',
'url': 'webapp/index.php?c=ActivityController&a=getOrderReward',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'drawBoxInfo',
'url': 'webapp/index.php?c=ActivityController&a=drawBoxInfo',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'drawBoxReward',
'url': 'webapp/index.php?c=ActivityController&a=drawBoxReward',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
]

49
doc/AdditemController.py Normal file
View File

@ -0,0 +1,49 @@
# -*- coding: utf-8 -*-
import _common
class AdditemController(object):
def __init__(self):
self.apis = [
{
'desc': 'additem',
'url': 'webapp/index.php?c=AdditemController&a=additem',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'addDiamond',
'url': 'webapp/index.php?c=AdditemController&a=addDiamond',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'addCoin',
'url': 'webapp/index.php?c=AdditemController&a=addCoin',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getCoin',
'url': 'webapp/index.php?c=AdditemController&a=getCoin',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
]

89
doc/BagController.py Normal file
View File

@ -0,0 +1,89 @@
# -*- coding: utf-8 -*-
import _common
class BagController(object):
def __init__(self):
self.apis = [
{
'desc': 'getBagInfo',
'url': 'webapp/index.php?c=BagController&a=getBagInfo',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'exchangeBagItem',
'url': 'webapp/index.php?c=BagController&a=exchangeBagItem',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'downItem',
'url': 'webapp/index.php?c=BagController&a=downItem',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'downItemColor',
'url': 'webapp/index.php?c=BagController&a=downItemColor',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'tryItem',
'url': 'webapp/index.php?c=BagController&a=tryItem',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'freeGetItem',
'url': 'webapp/index.php?c=BagController&a=freeGetItem',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'updateWeizhuang',
'url': 'webapp/index.php?c=BagController&a=updateWeizhuang',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'deleteItem',
'url': 'webapp/index.php?c=BagController&a=deleteItem',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
]

69
doc/EquipController.py Normal file
View File

@ -0,0 +1,69 @@
# -*- coding: utf-8 -*-
import _common
class EquipController(object):
def __init__(self):
self.apis = [
{
'desc': 'equipInfo',
'url': 'webapp/index.php?c=EquipController&a=equipInfo',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'speedUpTime',
'url': 'webapp/index.php?c=EquipController&a=speedUpTime',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'exchangeNewEquip',
'url': 'webapp/index.php?c=EquipController&a=exchangeNewEquip',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'shengjiEquip',
'url': 'webapp/index.php?c=EquipController&a=shengjiEquip',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'jinjieEquip',
'url': 'webapp/index.php?c=EquipController&a=jinjieEquip',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'unlockEquip',
'url': 'webapp/index.php?c=EquipController&a=unlockEquip',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
]

View File

@ -0,0 +1,39 @@
# -*- coding: utf-8 -*-
import _common
class FesActivityController(object):
def __init__(self):
self.apis = [
{
'desc': 'acitivityInfo',
'url': 'webapp/index.php?c=FesActivityController&a=acitivityInfo',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getActReward',
'url': 'webapp/index.php?c=FesActivityController&a=getActReward',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getActExtraReward',
'url': 'webapp/index.php?c=FesActivityController&a=getActExtraReward',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
]

69
doc/FriendController.py Normal file
View File

@ -0,0 +1,69 @@
# -*- coding: utf-8 -*-
import _common
class FriendController(object):
def __init__(self):
self.apis = [
{
'desc': 'selectUserInfo',
'url': 'webapp/index.php?c=FriendController&a=selectUserInfo',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'selectUser',
'url': 'webapp/index.php?c=FriendController&a=selectUser',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'selectUserByName',
'url': 'webapp/index.php?c=FriendController&a=selectUserByName',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'createRoleInfo',
'url': 'webapp/index.php?c=FriendController&a=createRoleInfo',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'changeRoleInfo',
'url': 'webapp/index.php?c=FriendController&a=changeRoleInfo',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'selRepeatName',
'url': 'webapp/index.php?c=FriendController&a=selRepeatName',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
]

39
doc/GMController.py Normal file
View File

@ -0,0 +1,39 @@
# -*- coding: utf-8 -*-
import _common
class GMController(object):
def __init__(self):
self.apis = [
{
'desc': 'clearDB',
'url': 'webapp/index.php?c=GMController&a=clearDB',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getSysTime',
'url': 'webapp/index.php?c=GMController&a=getSysTime',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'setSysTime',
'url': 'webapp/index.php?c=GMController&a=setSysTime',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
]

89
doc/GameOverController.py Normal file
View File

@ -0,0 +1,89 @@
# -*- coding: utf-8 -*-
import _common
class GameOverController(object):
def __init__(self):
self.apis = [
{
'desc': 'firstRewardInfo',
'url': 'webapp/index.php?c=GameOverController&a=firstRewardInfo',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getFirstReward',
'url': 'webapp/index.php?c=GameOverController&a=getFirstReward',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getFuckBoxReward',
'url': 'webapp/index.php?c=GameOverController&a=getFuckBoxReward',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getDiamond',
'url': 'webapp/index.php?c=GameOverController&a=getDiamond',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'updateDiamond',
'url': 'webapp/index.php?c=GameOverController&a=updateDiamond',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'addSpoilsItems',
'url': 'webapp/index.php?c=GameOverController&a=addSpoilsItems',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'fightRevive',
'url': 'webapp/index.php?c=GameOverController&a=fightRevive',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'addGameTimes',
'url': 'webapp/index.php?c=GameOverController&a=addGameTimes',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
]

49
doc/HangController.py Normal file
View File

@ -0,0 +1,49 @@
# -*- coding: utf-8 -*-
import _common
class HangController(object):
def __init__(self):
self.apis = [
{
'desc': 'getTime',
'url': 'webapp/index.php?c=HangController&a=getTime',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getRedInfo',
'url': 'webapp/index.php?c=HangController&a=getRedInfo',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getOnlineReward',
'url': 'webapp/index.php?c=HangController&a=getOnlineReward',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getHangDoubleReward',
'url': 'webapp/index.php?c=HangController&a=getHangDoubleReward',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
]

View File

@ -0,0 +1,19 @@
# -*- coding: utf-8 -*-
import _common
class HelloWorldController(object):
def __init__(self):
self.apis = [
{
'desc': 'sayHello',
'url': 'webapp/index.php?c=HelloWorldController&a=sayHello',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
]

89
doc/NBagController.py Normal file
View File

@ -0,0 +1,89 @@
# -*- coding: utf-8 -*-
import _common
class NBagController(object):
def __init__(self):
self.apis = [
{
'desc': 'testPhpFunc',
'url': 'webapp/index.php?c=NBagController&a=testPhpFunc',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'addItemToDB',
'url': 'webapp/index.php?c=NBagController&a=addItemToDB',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'saleItem',
'url': 'webapp/index.php?c=NBagController&a=saleItem',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'useItem',
'url': 'webapp/index.php?c=NBagController&a=useItem',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'updateBag',
'url': 'webapp/index.php?c=NBagController&a=updateBag',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getAllItem',
'url': 'webapp/index.php?c=NBagController&a=getAllItem',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getAllYokeItem',
'url': 'webapp/index.php?c=NBagController&a=getAllYokeItem',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'testPhpFunc2',
'url': 'webapp/index.php?c=NBagController&a=testPhpFunc2',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
]

59
doc/NGunController.py Normal file
View File

@ -0,0 +1,59 @@
# -*- coding: utf-8 -*-
import _common
class NGunController(object):
def __init__(self):
self.apis = [
{
'desc': 'getGunInfo',
'url': 'webapp/index.php?c=NGunController&a=getGunInfo',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'skillLvUp',
'url': 'webapp/index.php?c=NGunController&a=skillLvUp',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getGunAndSkinInfo',
'url': 'webapp/index.php?c=NGunController&a=getGunAndSkinInfo',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'equipGunSkin',
'url': 'webapp/index.php?c=NGunController&a=equipGunSkin',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'buyGunSkin',
'url': 'webapp/index.php?c=NGunController&a=buyGunSkin',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
]

109
doc/NHeroController.py Normal file
View File

@ -0,0 +1,109 @@
# -*- coding: utf-8 -*-
import _common
class NHeroController(object):
def __init__(self):
self.apis = [
{
'desc': 'addItemToDB',
'url': 'webapp/index.php?c=NHeroController&a=addItemToDB',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getAllHero',
'url': 'webapp/index.php?c=NHeroController&a=getAllHero',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getHeroInfoByID',
'url': 'webapp/index.php?c=NHeroController&a=getHeroInfoByID',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getYokeItemInfo',
'url': 'webapp/index.php?c=NHeroController&a=getYokeItemInfo',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'changeSkin',
'url': 'webapp/index.php?c=NHeroController&a=changeSkin',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'buySkin',
'url': 'webapp/index.php?c=NHeroController&a=buySkin',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'buyHero',
'url': 'webapp/index.php?c=NHeroController&a=buyHero',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getAllHeroSkinByID',
'url': 'webapp/index.php?c=NHeroController&a=getAllHeroSkinByID',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'skillLvUp',
'url': 'webapp/index.php?c=NHeroController&a=skillLvUp',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'useYokeItem',
'url': 'webapp/index.php?c=NHeroController&a=useYokeItem',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
]

29
doc/NPlayerController.py Normal file
View File

@ -0,0 +1,29 @@
# -*- coding: utf-8 -*-
import _common
class NPlayerController(object):
def __init__(self):
self.apis = [
{
'desc': 'getGunInfo',
'url': 'webapp/index.php?c=NPlayerController&a=getGunInfo',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getPlayerLv',
'url': 'webapp/index.php?c=NPlayerController&a=getPlayerLv',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
]

View File

@ -0,0 +1,59 @@
# -*- coding: utf-8 -*-
import _common
class NPlayerInfoController(object):
def __init__(self):
self.apis = [
{
'desc': 'sendGMFToClient',
'url': 'webapp/index.php?c=NPlayerInfoController&a=sendGMFToClient',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'addGiveMeFive',
'url': 'webapp/index.php?c=NPlayerInfoController&a=addGiveMeFive',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getPlayerInfo',
'url': 'webapp/index.php?c=NPlayerInfoController&a=getPlayerInfo',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'changeHIFrameHero',
'url': 'webapp/index.php?c=NPlayerInfoController&a=changeHIFrameHero',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'changeName',
'url': 'webapp/index.php?c=NPlayerInfoController&a=changeName',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
]

119
doc/NRRController.py Normal file
View File

@ -0,0 +1,119 @@
# -*- coding: utf-8 -*-
import _common
class NRRController(object):
def __init__(self):
self.apis = [
{
'desc': 'getGunInfo',
'url': 'webapp/index.php?c=NRRController&a=getGunInfo',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'test',
'url': 'webapp/index.php?c=NRRController&a=test',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'ResetRRVIP',
'url': 'webapp/index.php?c=NRRController&a=ResetRRVIP',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'buyRRVIP',
'url': 'webapp/index.php?c=NRRController&a=buyRRVIP',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getRRInfo',
'url': 'webapp/index.php?c=NRRController&a=getRRInfo',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getAward',
'url': 'webapp/index.php?c=NRRController&a=getAward',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getAllReward',
'url': 'webapp/index.php?c=NRRController&a=getAllReward',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'lvUp',
'url': 'webapp/index.php?c=NRRController&a=lvUp',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getCurSeasonCfg',
'url': 'webapp/index.php?c=NRRController&a=getCurSeasonCfg',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getRewardArr',
'url': 'webapp/index.php?c=NRRController&a=getRewardArr',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getRewardByStr',
'url': 'webapp/index.php?c=NRRController&a=getRewardByStr',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
]

39
doc/NRankController.py Normal file
View File

@ -0,0 +1,39 @@
# -*- coding: utf-8 -*-
import _common
class NRankController(object):
def __init__(self):
self.apis = [
{
'desc': 'getGunInfo',
'url': 'webapp/index.php?c=NRankController&a=getGunInfo',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getRankInfo',
'url': 'webapp/index.php?c=NRankController&a=getRankInfo',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'mailTest',
'url': 'webapp/index.php?c=NRankController&a=mailTest',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
]

99
doc/NShopController.py Normal file
View File

@ -0,0 +1,99 @@
# -*- coding: utf-8 -*-
import _common
class NShopController(object):
def __init__(self):
self.apis = [
{
'desc': 'getGunInfo',
'url': 'webapp/index.php?c=NShopController&a=getGunInfo',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getShopData',
'url': 'webapp/index.php?c=NShopController&a=getShopData',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getAllItem',
'url': 'webapp/index.php?c=NShopController&a=getAllItem',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getLimitTypeCnt',
'url': 'webapp/index.php?c=NShopController&a=getLimitTypeCnt',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getItemIDByGoodsID',
'url': 'webapp/index.php?c=NShopController&a=getItemIDByGoodsID',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'buyGunSkin',
'url': 'webapp/index.php?c=NShopController&a=buyGunSkin',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'buyItem',
'url': 'webapp/index.php?c=NShopController&a=buyItem',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'updateLimitGoodsCnt',
'url': 'webapp/index.php?c=NShopController&a=updateLimitGoodsCnt',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'initAllItem',
'url': 'webapp/index.php?c=NShopController&a=initAllItem',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
]

99
doc/NTaskController.py Normal file
View File

@ -0,0 +1,99 @@
# -*- coding: utf-8 -*-
import _common
class NTaskController(object):
def __init__(self):
self.apis = [
{
'desc': 'getGunInfo',
'url': 'webapp/index.php?c=NTaskController&a=getGunInfo',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'test',
'url': 'webapp/index.php?c=NTaskController&a=test',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'updateLogin',
'url': 'webapp/index.php?c=NTaskController&a=updateLogin',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getRewardState',
'url': 'webapp/index.php?c=NTaskController&a=getRewardState',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getLvTastRewardByTaskID',
'url': 'webapp/index.php?c=NTaskController&a=getLvTastRewardByTaskID',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getRewardByTaskID',
'url': 'webapp/index.php?c=NTaskController&a=getRewardByTaskID',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'updateTaskToDB',
'url': 'webapp/index.php?c=NTaskController&a=updateTaskToDB',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getAllTaskInfo',
'url': 'webapp/index.php?c=NTaskController&a=getAllTaskInfo',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'InsertTaskType',
'url': 'webapp/index.php?c=NTaskController&a=InsertTaskType',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
]

View File

@ -0,0 +1,119 @@
# -*- coding: utf-8 -*-
import _common
class NewPayActivityController(object):
def __init__(self):
self.apis = [
{
'desc': 'handlePre',
'url': 'webapp/index.php?c=NewPayActivityController&a=handlePre',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getExplode',
'url': 'webapp/index.php?c=NewPayActivityController&a=getExplode',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'rechargeRmb',
'url': 'webapp/index.php?c=NewPayActivityController&a=rechargeRmb',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'rechargeBuy',
'url': 'webapp/index.php?c=NewPayActivityController&a=rechargeBuy',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'unlockPassCard',
'url': 'webapp/index.php?c=NewPayActivityController&a=unlockPassCard',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'recAcitivityInfo',
'url': 'webapp/index.php?c=NewPayActivityController&a=recAcitivityInfo',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'recAcitivityReward',
'url': 'webapp/index.php?c=NewPayActivityController&a=recAcitivityReward',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'shareDiscount',
'url': 'webapp/index.php?c=NewPayActivityController&a=shareDiscount',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'flushDiscountShop',
'url': 'webapp/index.php?c=NewPayActivityController&a=flushDiscountShop',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'changeHeadKuang',
'url': 'webapp/index.php?c=NewPayActivityController&a=changeHeadKuang',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'addmailReward',
'url': 'webapp/index.php?c=NewPayActivityController&a=addmailReward',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
]

69
doc/PassController.py Normal file
View File

@ -0,0 +1,69 @@
# -*- coding: utf-8 -*-
import _common
class PassController(object):
def __init__(self):
self.apis = [
{
'desc': 'getPassInfo',
'url': 'webapp/index.php?c=PassController&a=getPassInfo',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getPassReward',
'url': 'webapp/index.php?c=PassController&a=getPassReward',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getWeekReward',
'url': 'webapp/index.php?c=PassController&a=getWeekReward',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getSeaReward',
'url': 'webapp/index.php?c=PassController&a=getSeaReward',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'buyExp',
'url': 'webapp/index.php?c=PassController&a=buyExp',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getAllPassReward',
'url': 'webapp/index.php?c=PassController&a=getAllPassReward',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
]

View File

@ -0,0 +1,109 @@
# -*- coding: utf-8 -*-
import _common
class PayActivityController(object):
def __init__(self):
self.apis = [
{
'desc': 'getExplode',
'url': 'webapp/index.php?c=PayActivityController&a=getExplode',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'rechargeRmb',
'url': 'webapp/index.php?c=PayActivityController&a=rechargeRmb',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'rechargeBuy',
'url': 'webapp/index.php?c=PayActivityController&a=rechargeBuy',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'unlockPassCard',
'url': 'webapp/index.php?c=PayActivityController&a=unlockPassCard',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'recAcitivityInfo',
'url': 'webapp/index.php?c=PayActivityController&a=recAcitivityInfo',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'recAcitivityReward',
'url': 'webapp/index.php?c=PayActivityController&a=recAcitivityReward',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'shareDiscount',
'url': 'webapp/index.php?c=PayActivityController&a=shareDiscount',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'flushDiscountShop',
'url': 'webapp/index.php?c=PayActivityController&a=flushDiscountShop',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'changeHeadKuang',
'url': 'webapp/index.php?c=PayActivityController&a=changeHeadKuang',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'addmailReward',
'url': 'webapp/index.php?c=PayActivityController&a=addmailReward',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
]

69
doc/PayController.py Normal file
View File

@ -0,0 +1,69 @@
# -*- coding: utf-8 -*-
import _common
class PayController(object):
def __init__(self):
self.apis = [
{
'desc': 'getPayInfo',
'url': 'webapp/index.php?c=PayController&a=getPayInfo',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getVipInfo',
'url': 'webapp/index.php?c=PayController&a=getVipInfo',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getVipReward',
'url': 'webapp/index.php?c=PayController&a=getVipReward',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'buyItem',
'url': 'webapp/index.php?c=PayController&a=buyItem',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getOrderInfo',
'url': 'webapp/index.php?c=PayController&a=getOrderInfo',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'addADtimes',
'url': 'webapp/index.php?c=PayController&a=addADtimes',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
]

View File

@ -0,0 +1,19 @@
# -*- coding: utf-8 -*-
import _common
class PayNotifyController(object):
def __init__(self):
self.apis = [
{
'desc': 'payNotify',
'url': 'webapp/index.php?c=PayNotifyController&a=payNotify',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
]

29
doc/PropertyController.py Normal file
View File

@ -0,0 +1,29 @@
# -*- coding: utf-8 -*-
import _common
class PropertyController(object):
def __init__(self):
self.apis = [
{
'desc': 'updateMoney',
'url': 'webapp/index.php?c=PropertyController&a=updateMoney',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'updateMoneyAndLottery',
'url': 'webapp/index.php?c=PropertyController&a=updateMoneyAndLottery',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
]

49
doc/QuestController.py Normal file
View File

@ -0,0 +1,49 @@
# -*- coding: utf-8 -*-
import _common
class QuestController(object):
def __init__(self):
self.apis = [
{
'desc': 'questInfo',
'url': 'webapp/index.php?c=QuestController&a=questInfo',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'doubleQuestReward',
'url': 'webapp/index.php?c=QuestController&a=doubleQuestReward',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'submitQuest',
'url': 'webapp/index.php?c=QuestController&a=submitQuest',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'addGuildTask',
'url': 'webapp/index.php?c=QuestController&a=addGuildTask',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
]

19
doc/RankController.py Normal file
View File

@ -0,0 +1,19 @@
# -*- coding: utf-8 -*-
import _common
class RankController(object):
def __init__(self):
self.apis = [
{
'desc': 'rankInfo',
'url': 'webapp/index.php?c=RankController&a=rankInfo',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
]

279
doc/RoleController.py Normal file
View File

@ -0,0 +1,279 @@
# -*- coding: utf-8 -*-
import _common
class RoleController(object):
def __init__(self):
self.apis = [
{
'desc': 'roleInfo',
'url': 'webapp/index.php?c=RoleController&a=roleInfo',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'addHeroToDB',
'url': 'webapp/index.php?c=RoleController&a=addHeroToDB',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'addAllHero',
'url': 'webapp/index.php?c=RoleController&a=addAllHero',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'addHeroSkin',
'url': 'webapp/index.php?c=RoleController&a=addHeroSkin',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'clientBattleReport',
'url': 'webapp/index.php?c=RoleController&a=clientBattleReport',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'battleReport',
'url': 'webapp/index.php?c=RoleController&a=battleReport',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'bioBattleReport',
'url': 'webapp/index.php?c=RoleController&a=bioBattleReport',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'oldBattleReport',
'url': 'webapp/index.php?c=RoleController&a=oldBattleReport',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'historyRecord',
'url': 'webapp/index.php?c=RoleController&a=historyRecord',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'shareGame',
'url': 'webapp/index.php?c=RoleController&a=shareGame',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'historyInfo',
'url': 'webapp/index.php?c=RoleController&a=historyInfo',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'collectReward',
'url': 'webapp/index.php?c=RoleController&a=collectReward',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'collectDoubleReward',
'url': 'webapp/index.php?c=RoleController&a=collectDoubleReward',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getPreSettlementInfo',
'url': 'webapp/index.php?c=RoleController&a=getPreSettlementInfo',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getRobotInfo',
'url': 'webapp/index.php?c=RoleController&a=getRobotInfo',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getFightReward',
'url': 'webapp/index.php?c=RoleController&a=getFightReward',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getNewHandReward',
'url': 'webapp/index.php?c=RoleController&a=getNewHandReward',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getSessionId',
'url': 'webapp/index.php?c=RoleController&a=getSessionId',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'exchangeCoin',
'url': 'webapp/index.php?c=RoleController&a=exchangeCoin',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'saveNewbie',
'url': 'webapp/index.php?c=RoleController&a=saveNewbie',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'updateDailyAD',
'url': 'webapp/index.php?c=RoleController&a=updateDailyAD',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getVideoReward',
'url': 'webapp/index.php?c=RoleController&a=getVideoReward',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getDeskReward',
'url': 'webapp/index.php?c=RoleController&a=getDeskReward',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getShareVideoReward',
'url': 'webapp/index.php?c=RoleController&a=getShareVideoReward',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getWatchAdReward',
'url': 'webapp/index.php?c=RoleController&a=getWatchAdReward',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'addVideotimes',
'url': 'webapp/index.php?c=RoleController&a=addVideotimes',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getFightEquip',
'url': 'webapp/index.php?c=RoleController&a=getFightEquip',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
]

View File

@ -0,0 +1,19 @@
# -*- coding: utf-8 -*-
import _common
class ServerSwitchController(object):
def __init__(self):
self.apis = [
{
'desc': 'getSwitch',
'url': 'webapp/index.php?c=ServerSwitchController&a=getSwitch',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
]

89
doc/ShareController.py Normal file
View File

@ -0,0 +1,89 @@
# -*- coding: utf-8 -*-
import _common
class ShareController(object):
def __init__(self):
self.apis = [
{
'desc': 'beeReward',
'url': 'webapp/index.php?c=ShareController&a=beeReward',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'keyBoxInfo',
'url': 'webapp/index.php?c=ShareController&a=keyBoxInfo',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'keyBoxDoubleReward',
'url': 'webapp/index.php?c=ShareController&a=keyBoxDoubleReward',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'shareFriendInfo',
'url': 'webapp/index.php?c=ShareController&a=shareFriendInfo',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'shareFriendReward',
'url': 'webapp/index.php?c=ShareController&a=shareFriendReward',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'shareDobleReward',
'url': 'webapp/index.php?c=ShareController&a=shareDobleReward',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getKefuReward',
'url': 'webapp/index.php?c=ShareController&a=getKefuReward',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'kefuDoubleReward',
'url': 'webapp/index.php?c=ShareController&a=kefuDoubleReward',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
]

49
doc/ShopController.py Normal file
View File

@ -0,0 +1,49 @@
# -*- coding: utf-8 -*-
import _common
class ShopController(object):
def __init__(self):
self.apis = [
{
'desc': 'newShopInfo',
'url': 'webapp/index.php?c=ShopController&a=newShopInfo',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'flushShopItem',
'url': 'webapp/index.php?c=ShopController&a=flushShopItem',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'newBuyShopItem',
'url': 'webapp/index.php?c=ShopController&a=newBuyShopItem',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'shopBuyMore',
'url': 'webapp/index.php?c=ShopController&a=shopBuyMore',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
]

49
doc/SignController.py Normal file
View File

@ -0,0 +1,49 @@
# -*- coding: utf-8 -*-
import _common
class SignController(object):
def __init__(self):
self.apis = [
{
'desc': 'signInfo',
'url': 'webapp/index.php?c=SignController&a=signInfo',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'signReward',
'url': 'webapp/index.php?c=SignController&a=signReward',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'signDoubleReward',
'url': 'webapp/index.php?c=SignController&a=signDoubleReward',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getSignOrder',
'url': 'webapp/index.php?c=SignController&a=getSignOrder',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
]

119
doc/TeamController.py Normal file
View File

@ -0,0 +1,119 @@
# -*- coding: utf-8 -*-
import _common
class TeamController(object):
def __init__(self):
self.apis = [
{
'desc': 'createTeam',
'url': 'webapp/index.php?c=TeamController&a=createTeam',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'resetRoom',
'url': 'webapp/index.php?c=TeamController&a=resetRoom',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'teamInfo',
'url': 'webapp/index.php?c=TeamController&a=teamInfo',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getSelectHeroTeamInfo',
'url': 'webapp/index.php?c=TeamController&a=getSelectHeroTeamInfo',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'selectHero',
'url': 'webapp/index.php?c=TeamController&a=selectHero',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'readyGame',
'url': 'webapp/index.php?c=TeamController&a=readyGame',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'joinTeam',
'url': 'webapp/index.php?c=TeamController&a=joinTeam',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'kickoutMember',
'url': 'webapp/index.php?c=TeamController&a=kickoutMember',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'leaveTeam',
'url': 'webapp/index.php?c=TeamController&a=leaveTeam',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'updateTeam',
'url': 'webapp/index.php?c=TeamController&a=updateTeam',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'startGame',
'url': 'webapp/index.php?c=TeamController&a=startGame',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
]

19
doc/TempController.py Normal file
View File

@ -0,0 +1,19 @@
# -*- coding: utf-8 -*-
import _common
class TempController(object):
def __init__(self):
self.apis = [
{
'desc': 'getRedSum',
'url': 'webapp/index.php?c=TempController&a=getRedSum',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
]

19
doc/TestPhp.py Normal file
View File

@ -0,0 +1,19 @@
# -*- coding: utf-8 -*-
import _common
class TestPhp(object):
def __init__(self):
self.apis = [
{
'desc': 'testPhpFunc',
'url': 'webapp/index.php?c=TestPhp&a=testPhpFunc',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
]

29
doc/TestPhpController.py Normal file
View File

@ -0,0 +1,29 @@
# -*- coding: utf-8 -*-
import _common
class TestPhpController(object):
def __init__(self):
self.apis = [
{
'desc': 'testPhpFunc',
'url': 'webapp/index.php?c=TestPhpController&a=testPhpFunc',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'testPhpFunc2',
'url': 'webapp/index.php?c=TestPhpController&a=testPhpFunc2',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
]

69
doc/UnitTestController.py Normal file
View File

@ -0,0 +1,69 @@
# -*- coding: utf-8 -*-
import _common
class UnitTestController(object):
def __init__(self):
self.apis = [
{
'desc': 'getEquipConf',
'url': 'webapp/index.php?c=UnitTestController&a=getEquipConf',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getEquipById',
'url': 'webapp/index.php?c=UnitTestController&a=getEquipById',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getParameterConf',
'url': 'webapp/index.php?c=UnitTestController&a=getParameterConf',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'getParameterByName',
'url': 'webapp/index.php?c=UnitTestController&a=getParameterByName',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'shopRandGoods',
'url': 'webapp/index.php?c=UnitTestController&a=shopRandGoods',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'testController',
'url': 'webapp/index.php?c=UnitTestController&a=testController',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
]

29
doc/VoiceController.py Normal file
View File

@ -0,0 +1,29 @@
# -*- coding: utf-8 -*-
import _common
class VoiceController(object):
def __init__(self):
self.apis = [
{
'desc': 'upload',
'url': 'webapp/index.php?c=VoiceController&a=upload',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'download',
'url': 'webapp/index.php?c=VoiceController&a=download',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
]

3
doc/env.json Normal file
View File

@ -0,0 +1,3 @@
{
"name": "game2005api"
}