1
This commit is contained in:
parent
9a6323e9d0
commit
4f1fe94cf4
@ -89,4 +89,21 @@ class BlockChain(object):
|
||||
['!params', [''], '合约参数列表'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'buyMallProduct',
|
||||
'desc': '购买中心化market商品',
|
||||
'group': 'BlockChain',
|
||||
'url': 'webapp/index.php?c=BlockChain&a=buyMallProduct',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['currency', '', "选用币种 目前只支持CEG USDC USDT"],
|
||||
['goods_uuid', '', '商品唯一id'],
|
||||
['price', '', '出售价格'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['trans_id', '', '事务id'],
|
||||
['!params', [''], '合约参数列表'],
|
||||
]
|
||||
},
|
||||
]
|
||||
|
41
doc/Mall.py
41
doc/Mall.py
@ -7,14 +7,15 @@ class Mall(object):
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'productOnline',
|
||||
'desc': '出售NFT',
|
||||
'name': 'productList',
|
||||
'desc': '商品列表',
|
||||
'group': 'Mall',
|
||||
'url': 'webapp/index.php?c=Mall&a=productOnline',
|
||||
'url': 'webapp/index.php?c=Mall&a=productList',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['item_id', '', '道具id,'],
|
||||
['amount', '', '出售数量'],
|
||||
['currency', '', "选用币种 目前只支持CEG USDC USDT"],
|
||||
['price', '', '出售价格'],
|
||||
],
|
||||
'response': [
|
||||
@ -22,10 +23,26 @@ class Mall(object):
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'productOffline',
|
||||
'name': 'sell',
|
||||
'desc': '出售',
|
||||
'group': 'Mall',
|
||||
'url': 'webapp/index.php?c=Mall&a=sell',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['item_id', '', '道具id,'],
|
||||
['amount', '', '出售数量'],
|
||||
['currency', '', "选用币种 目前只支持CEG USDC USDT"],
|
||||
['price', '', '出售价格'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead()
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'cancel',
|
||||
'desc': '下架物品',
|
||||
'group': 'Mall',
|
||||
'url': 'webapp/index.php?c=Mall&a=productOffline',
|
||||
'url': 'webapp/index.php?c=Mall&a=cancel',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['goods_uuid', '', '商品唯一id'],
|
||||
@ -48,18 +65,4 @@ class Mall(object):
|
||||
_common.RspHead()
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'buyProduct',
|
||||
'desc': '购买商品',
|
||||
'group': 'Mall',
|
||||
'url': 'webapp/index.php?c=Mall&a=buyProduct',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['goods_uuid', '', '商品唯一id'],
|
||||
['price', '', '出售价格'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead()
|
||||
]
|
||||
},
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user