...
This commit is contained in:
parent
e0cb798c94
commit
32b25aa996
15
doc/Shop.py
15
doc/Shop.py
@ -217,5 +217,20 @@ class Shop(object):
|
||||
_common.RspHead(),
|
||||
['block_chain', _common.ShopTrans(), '链上购买订单信息']
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'buyBlindBox',
|
||||
'desc': '购买盲盒(宝箱)',
|
||||
'group': 'Shop',
|
||||
'url': 'webapp/index.php?c=Shop&a=buyBlindBox',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['id', 0, '商品唯一id,参见shopGoods表'],
|
||||
['num', 0, '购买数量 1:单个 10:十连抽'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!result', [_common.BlindBoxResult()], '盲盒结果列表'],
|
||||
]
|
||||
}
|
||||
]
|
||||
|
@ -1219,3 +1219,11 @@ class ShopTrans(object):
|
||||
['item_id', 0, 'item_id'],
|
||||
['item_num', 0, 'item_num'],
|
||||
]
|
||||
|
||||
class BlindBoxResult(object):
|
||||
|
||||
def __init__(self):
|
||||
self.fields = [
|
||||
['item_id', 0, 'item_id'],
|
||||
['num', 0, 'num'],
|
||||
]
|
Loading…
x
Reference in New Issue
Block a user