game2005api/doc/Bag.py
aozhiwei 9346a5f558 1
2021-12-02 17:04:27 +08:00

39 lines
1.2 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(),
['item_id', 0, '道具id'],
['item_num', 0, '道具数量'],
],
'response': [
_common.RspHead(),
['award', _common.Award(), '奖励信息'],
['property_chg', _common.PropertyChg(), '属性变更'],
]
},
]