From 933c7a0491eff3e9a8e75f8c0c2222f80345a5be Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 17 Nov 2021 15:55:16 +0800 Subject: [PATCH] add doc --- .gitignore | 5 +- doc/ActivityController.py | 109 +++++++++++++ doc/AdditemController.py | 49 ++++++ doc/BagController.py | 89 ++++++++++ doc/EquipController.py | 69 ++++++++ doc/FesActivityController.py | 39 +++++ doc/FriendController.py | 69 ++++++++ doc/GMController.py | 39 +++++ doc/GameOverController.py | 89 ++++++++++ doc/HangController.py | 49 ++++++ doc/HelloWorldController.py | 19 +++ doc/NBagController.py | 89 ++++++++++ doc/NGunController.py | 59 +++++++ doc/NHeroController.py | 109 +++++++++++++ doc/NPlayerController.py | 29 ++++ doc/NPlayerInfoController.py | 59 +++++++ doc/NRRController.py | 119 ++++++++++++++ doc/NRankController.py | 39 +++++ doc/NShopController.py | 99 ++++++++++++ doc/NTaskController.py | 99 ++++++++++++ doc/NewPayActivityController.py | 119 ++++++++++++++ doc/PassController.py | 69 ++++++++ doc/PayActivityController.py | 109 +++++++++++++ doc/PayController.py | 69 ++++++++ doc/PayNotifyController.py | 19 +++ doc/PropertyController.py | 29 ++++ doc/QuestController.py | 49 ++++++ doc/RankController.py | 19 +++ doc/RoleController.py | 279 ++++++++++++++++++++++++++++++++ doc/ServerSwitchController.py | 19 +++ doc/ShareController.py | 89 ++++++++++ doc/ShopController.py | 49 ++++++ doc/SignController.py | 49 ++++++ doc/TeamController.py | 119 ++++++++++++++ doc/TempController.py | 19 +++ doc/TestPhp.py | 19 +++ doc/TestPhpController.py | 29 ++++ doc/UnitTestController.py | 69 ++++++++ doc/VoiceController.py | 29 ++++ doc/env.json | 3 + 40 files changed, 2579 insertions(+), 1 deletion(-) create mode 100644 doc/ActivityController.py create mode 100644 doc/AdditemController.py create mode 100644 doc/BagController.py create mode 100644 doc/EquipController.py create mode 100644 doc/FesActivityController.py create mode 100644 doc/FriendController.py create mode 100644 doc/GMController.py create mode 100644 doc/GameOverController.py create mode 100644 doc/HangController.py create mode 100644 doc/HelloWorldController.py create mode 100644 doc/NBagController.py create mode 100644 doc/NGunController.py create mode 100644 doc/NHeroController.py create mode 100644 doc/NPlayerController.py create mode 100644 doc/NPlayerInfoController.py create mode 100644 doc/NRRController.py create mode 100644 doc/NRankController.py create mode 100644 doc/NShopController.py create mode 100644 doc/NTaskController.py create mode 100644 doc/NewPayActivityController.py create mode 100644 doc/PassController.py create mode 100644 doc/PayActivityController.py create mode 100644 doc/PayController.py create mode 100644 doc/PayNotifyController.py create mode 100644 doc/PropertyController.py create mode 100644 doc/QuestController.py create mode 100644 doc/RankController.py create mode 100644 doc/RoleController.py create mode 100644 doc/ServerSwitchController.py create mode 100644 doc/ShareController.py create mode 100644 doc/ShopController.py create mode 100644 doc/SignController.py create mode 100644 doc/TeamController.py create mode 100644 doc/TempController.py create mode 100644 doc/TestPhp.py create mode 100644 doc/TestPhpController.py create mode 100644 doc/UnitTestController.py create mode 100644 doc/VoiceController.py create mode 100644 doc/env.json diff --git a/.gitignore b/.gitignore index 68f6149..06b219d 100644 --- a/.gitignore +++ b/.gitignore @@ -12,4 +12,7 @@ config __pycache__/ res out/ -public/ \ No newline at end of file +public/ +*.postman.json +*.doc.php +apilist.json \ No newline at end of file diff --git a/doc/ActivityController.py b/doc/ActivityController.py new file mode 100644 index 0000000..16c9360 --- /dev/null +++ b/doc/ActivityController.py @@ -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(), + ] + }, + ] diff --git a/doc/AdditemController.py b/doc/AdditemController.py new file mode 100644 index 0000000..1cc4ce6 --- /dev/null +++ b/doc/AdditemController.py @@ -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(), + ] + }, + ] diff --git a/doc/BagController.py b/doc/BagController.py new file mode 100644 index 0000000..938a227 --- /dev/null +++ b/doc/BagController.py @@ -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(), + ] + }, + ] diff --git a/doc/EquipController.py b/doc/EquipController.py new file mode 100644 index 0000000..4300ef0 --- /dev/null +++ b/doc/EquipController.py @@ -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(), + ] + }, + ] diff --git a/doc/FesActivityController.py b/doc/FesActivityController.py new file mode 100644 index 0000000..e5b0762 --- /dev/null +++ b/doc/FesActivityController.py @@ -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(), + ] + }, + ] diff --git a/doc/FriendController.py b/doc/FriendController.py new file mode 100644 index 0000000..ae9c31a --- /dev/null +++ b/doc/FriendController.py @@ -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(), + ] + }, + ] diff --git a/doc/GMController.py b/doc/GMController.py new file mode 100644 index 0000000..f43ee11 --- /dev/null +++ b/doc/GMController.py @@ -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(), + ] + }, + ] diff --git a/doc/GameOverController.py b/doc/GameOverController.py new file mode 100644 index 0000000..d73625b --- /dev/null +++ b/doc/GameOverController.py @@ -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(), + ] + }, + ] diff --git a/doc/HangController.py b/doc/HangController.py new file mode 100644 index 0000000..db0d535 --- /dev/null +++ b/doc/HangController.py @@ -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(), + ] + }, + ] diff --git a/doc/HelloWorldController.py b/doc/HelloWorldController.py new file mode 100644 index 0000000..ddbe863 --- /dev/null +++ b/doc/HelloWorldController.py @@ -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(), + ] + }, + ] diff --git a/doc/NBagController.py b/doc/NBagController.py new file mode 100644 index 0000000..6841194 --- /dev/null +++ b/doc/NBagController.py @@ -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(), + ] + }, + ] diff --git a/doc/NGunController.py b/doc/NGunController.py new file mode 100644 index 0000000..2bf5ed8 --- /dev/null +++ b/doc/NGunController.py @@ -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(), + ] + }, + ] diff --git a/doc/NHeroController.py b/doc/NHeroController.py new file mode 100644 index 0000000..e901a12 --- /dev/null +++ b/doc/NHeroController.py @@ -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(), + ] + }, + ] diff --git a/doc/NPlayerController.py b/doc/NPlayerController.py new file mode 100644 index 0000000..5daaa03 --- /dev/null +++ b/doc/NPlayerController.py @@ -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(), + ] + }, + ] diff --git a/doc/NPlayerInfoController.py b/doc/NPlayerInfoController.py new file mode 100644 index 0000000..3b367cf --- /dev/null +++ b/doc/NPlayerInfoController.py @@ -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(), + ] + }, + ] diff --git a/doc/NRRController.py b/doc/NRRController.py new file mode 100644 index 0000000..d60a9e8 --- /dev/null +++ b/doc/NRRController.py @@ -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(), + ] + }, + ] diff --git a/doc/NRankController.py b/doc/NRankController.py new file mode 100644 index 0000000..681389e --- /dev/null +++ b/doc/NRankController.py @@ -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(), + ] + }, + ] diff --git a/doc/NShopController.py b/doc/NShopController.py new file mode 100644 index 0000000..47d6097 --- /dev/null +++ b/doc/NShopController.py @@ -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(), + ] + }, + ] diff --git a/doc/NTaskController.py b/doc/NTaskController.py new file mode 100644 index 0000000..1f49658 --- /dev/null +++ b/doc/NTaskController.py @@ -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(), + ] + }, + ] diff --git a/doc/NewPayActivityController.py b/doc/NewPayActivityController.py new file mode 100644 index 0000000..dfa0f88 --- /dev/null +++ b/doc/NewPayActivityController.py @@ -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(), + ] + }, + ] diff --git a/doc/PassController.py b/doc/PassController.py new file mode 100644 index 0000000..efb847f --- /dev/null +++ b/doc/PassController.py @@ -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(), + ] + }, + ] diff --git a/doc/PayActivityController.py b/doc/PayActivityController.py new file mode 100644 index 0000000..cdd07b5 --- /dev/null +++ b/doc/PayActivityController.py @@ -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(), + ] + }, + ] diff --git a/doc/PayController.py b/doc/PayController.py new file mode 100644 index 0000000..99224d1 --- /dev/null +++ b/doc/PayController.py @@ -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(), + ] + }, + ] diff --git a/doc/PayNotifyController.py b/doc/PayNotifyController.py new file mode 100644 index 0000000..710500d --- /dev/null +++ b/doc/PayNotifyController.py @@ -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(), + ] + }, + ] diff --git a/doc/PropertyController.py b/doc/PropertyController.py new file mode 100644 index 0000000..7672fcb --- /dev/null +++ b/doc/PropertyController.py @@ -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(), + ] + }, + ] diff --git a/doc/QuestController.py b/doc/QuestController.py new file mode 100644 index 0000000..37a6cdc --- /dev/null +++ b/doc/QuestController.py @@ -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(), + ] + }, + ] diff --git a/doc/RankController.py b/doc/RankController.py new file mode 100644 index 0000000..d390664 --- /dev/null +++ b/doc/RankController.py @@ -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(), + ] + }, + ] diff --git a/doc/RoleController.py b/doc/RoleController.py new file mode 100644 index 0000000..af86596 --- /dev/null +++ b/doc/RoleController.py @@ -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(), + ] + }, + ] diff --git a/doc/ServerSwitchController.py b/doc/ServerSwitchController.py new file mode 100644 index 0000000..6235509 --- /dev/null +++ b/doc/ServerSwitchController.py @@ -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(), + ] + }, + ] diff --git a/doc/ShareController.py b/doc/ShareController.py new file mode 100644 index 0000000..d6fb50d --- /dev/null +++ b/doc/ShareController.py @@ -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(), + ] + }, + ] diff --git a/doc/ShopController.py b/doc/ShopController.py new file mode 100644 index 0000000..9426b53 --- /dev/null +++ b/doc/ShopController.py @@ -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(), + ] + }, + ] diff --git a/doc/SignController.py b/doc/SignController.py new file mode 100644 index 0000000..0492214 --- /dev/null +++ b/doc/SignController.py @@ -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(), + ] + }, + ] diff --git a/doc/TeamController.py b/doc/TeamController.py new file mode 100644 index 0000000..d1c4cd4 --- /dev/null +++ b/doc/TeamController.py @@ -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(), + ] + }, + ] diff --git a/doc/TempController.py b/doc/TempController.py new file mode 100644 index 0000000..08dc6cc --- /dev/null +++ b/doc/TempController.py @@ -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(), + ] + }, + ] diff --git a/doc/TestPhp.py b/doc/TestPhp.py new file mode 100644 index 0000000..c602391 --- /dev/null +++ b/doc/TestPhp.py @@ -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(), + ] + }, + ] diff --git a/doc/TestPhpController.py b/doc/TestPhpController.py new file mode 100644 index 0000000..5e95025 --- /dev/null +++ b/doc/TestPhpController.py @@ -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(), + ] + }, + ] diff --git a/doc/UnitTestController.py b/doc/UnitTestController.py new file mode 100644 index 0000000..3f11430 --- /dev/null +++ b/doc/UnitTestController.py @@ -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(), + ] + }, + ] diff --git a/doc/VoiceController.py b/doc/VoiceController.py new file mode 100644 index 0000000..3356553 --- /dev/null +++ b/doc/VoiceController.py @@ -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(), + ] + }, + ] diff --git a/doc/env.json b/doc/env.json new file mode 100644 index 0000000..478818c --- /dev/null +++ b/doc/env.json @@ -0,0 +1,3 @@ +{ + "name": "game2005api" +}