game2006api/doc/Shop.py
aozhiwei 1250c95864 1
2021-11-29 19:47:27 +08:00

41 lines
1.2 KiB
Python

# -*- coding: utf-8 -*-
import _common
class Shop(object):
def __init__(self):
self.apis = [
{
'name': 'info',
'desc': '获取商店信息',
'group': 'Shop',
'url': 'webapp/index.php?c=Shop&a=info',
'params': [
_common.ReqHead(),
['shop_id', '', '商店id'],
],
'response': [
_common.RspHead(),
['info', _common.Shop(), '商店信息'],
]
},
{
'name': 'buy',
'desc': '购买英雄',
'group': 'Shop',
'url': 'webapp/index.php?c=Shop&a=buy',
'params': [
_common.ReqHead(),
['shop_id', 0, '商店id'],
['goods_id', 0, '商品id'],
['cost_item_id', 0, '支付方式'],
],
'response': [
_common.RspHead(),
['award', _common.Award(), '奖励信息'],
['property_chg', _common.PropertyChg(), '属性变更'],
]
},
]