This commit is contained in:
aozhiwei 2023-08-07 10:21:38 +08:00
parent 9a6323e9d0
commit 4f1fe94cf4
2 changed files with 39 additions and 19 deletions

View File

@ -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', [''], '合约参数列表'],
]
},
]

View File

@ -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()
]
},
]