37 lines
1.1 KiB
Python
37 lines
1.1 KiB
Python
# -*- coding: utf-8 -*-
|
|
|
|
import _common
|
|
|
|
class Bag(object):
|
|
|
|
def __init__(self):
|
|
self.apis = [
|
|
{
|
|
'name': 'itemList',
|
|
'desc': '获取背包物品列表',
|
|
'group': 'Bag',
|
|
'url': 'webapp/index.php?c=Bag&a=itemList',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
['!item_list', [_common.Item()], '物品列表']
|
|
]
|
|
},
|
|
{
|
|
'name': 'useItem',
|
|
'desc': '使用道具',
|
|
'group': 'Bag',
|
|
'url': 'webapp/index.php?c=Bag&a=useItem',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
['award', _common.Award(), '奖励信息'],
|
|
['property_chg', _common.PropertyChg(), '属性变更'],
|
|
]
|
|
},
|
|
]
|