98 lines
2.3 KiB
Python
98 lines
2.3 KiB
Python
# -*- coding: utf-8 -*-
|
|
|
|
import _common
|
|
|
|
class NBag(object):
|
|
|
|
def __init__(self):
|
|
self.apis = [
|
|
{
|
|
'desc': 'testPhpFunc',
|
|
'group': 'NBag',
|
|
'url': 'webapp/index.php?c=NBag&a=testPhpFunc',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
]
|
|
},
|
|
{
|
|
'desc': 'addItemToDB',
|
|
'group': 'NBag',
|
|
'url': 'webapp/index.php?c=NBag&a=addItemToDB',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
]
|
|
},
|
|
{
|
|
'desc': 'saleItem',
|
|
'group': 'NBag',
|
|
'url': 'webapp/index.php?c=NBag&a=saleItem',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
]
|
|
},
|
|
{
|
|
'desc': 'useItem',
|
|
'group': 'NBag',
|
|
'url': 'webapp/index.php?c=NBag&a=useItem',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
]
|
|
},
|
|
{
|
|
'desc': 'updateBag',
|
|
'group': 'NBag',
|
|
'url': 'webapp/index.php?c=NBag&a=updateBag',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
]
|
|
},
|
|
{
|
|
'desc': 'getAllItem',
|
|
'group': 'NBag',
|
|
'url': 'webapp/index.php?c=NBag&a=getAllItem',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
]
|
|
},
|
|
{
|
|
'desc': 'getAllYokeItem',
|
|
'group': 'NBag',
|
|
'url': 'webapp/index.php?c=NBag&a=getAllYokeItem',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
]
|
|
},
|
|
{
|
|
'desc': 'testPhpFunc2',
|
|
'group': 'NBag',
|
|
'url': 'webapp/index.php?c=NBag&a=testPhpFunc2',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
]
|
|
},
|
|
]
|