# -*- 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(), ] }, ]