This commit is contained in:
aozhiwei 2023-08-07 10:44:08 +08:00
parent 4f1fe94cf4
commit eea4fdfe2c
3 changed files with 24 additions and 9 deletions

View File

@ -13,13 +13,12 @@ class Mall(object):
'url': 'webapp/index.php?c=Mall&a=productList',
'params': [
_common.ReqHead(),
['item_id', '', '道具id,'],
['amount', '', '出售数量'],
['currency', '', "选用币种 目前只支持CEG USDC USDT"],
['price', '', '出售价格'],
['page', 0, '第几页数据'],
],
'response': [
_common.RspHead()
_common.RspHead(),
_common.Pagination(),
['!rows', [_common.NftIntro()], '商品列表']
]
},
{

View File

@ -7,10 +7,10 @@ class Market(object):
def __init__(self):
self.apis = [
{
'name': 'listSellNfts',
'name': 'productList',
'desc': '获取上架出售的NFTs',
'group': 'Market',
'url': 'webapp/index.php?c=Market&a=listSellNfts',
'url': 'webapp/index.php?c=Market&a=productList',
'params': [
['page', 0, '第几页数据'],
['order_method', 0, '排序方式 0:默认排序(当前指向1) 1:上架时间 2:价格 3:星级质量 4:等级 5:能量值 6:生命值 7:攻击力 8:防御力'],
@ -27,7 +27,7 @@ class Market(object):
'response': [
_common.RspHead(),
_common.Pagination(),
['!rows', [_common.NftIntro()], 'nft列表'],
['!rows', [_common.MarketGoods()], '商品列表'],
]
},
{

View File

@ -1292,7 +1292,23 @@ class CurrencyType(object):
['address', '', '货币地址'],
]
class NftIntro(object):
class MarketGoods(object):
def __init__(self):
self.fields = [
['order_id', '', '订单id'],
['token_id', '', 'token_id'],
['nft_token', '', 'nft_token'],
['amount', '', 'amount'],
['seller', '', '售卖方'],
['currency', '', '货币'],
['price', '', '出售价格'],
['selltime', 0, '上架时间'],
['updatetime', 0, '修改时间(更新价格等)'],
['details', NftDetail(), 'nft列表'],
]
class MallGoods(object):
def __init__(self):
self.fields = [