1
This commit is contained in:
parent
fd6cdc10ca
commit
c369ef48cf
@ -71,7 +71,7 @@ class AAMarket(object):
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['data', _common.MarketGoods(), '商品信息(如果没则为null)'],
|
||||
['data', _common.MarketGoods(), '商品信息(如果没则为null), 如果未上架则data.event==null'],
|
||||
]
|
||||
},
|
||||
{
|
||||
@ -125,7 +125,7 @@ class AAMarket(object):
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['page', _common.StreamPage(), '分页信息'],
|
||||
['!rows', [_common.NftInfo()], '数据'],
|
||||
['!rows', [_common.AssetNftInfo()], '数据'],
|
||||
]
|
||||
},
|
||||
{
|
||||
|
@ -1773,3 +1773,23 @@ class MarketGoods(object):
|
||||
['nft', NftInfo(), 'nft信息'],
|
||||
['in_shopcart', 0, '商品是否已在购物车里'],
|
||||
]
|
||||
|
||||
class AssetNftInfo(object):
|
||||
|
||||
def __init__(self):
|
||||
self.fields = [
|
||||
['net_id', 0, '链id'],
|
||||
['contract_address', 0, '合约地址'],
|
||||
['token_id', '', 'token id'],
|
||||
['owner_address', '', '所有者地址'],
|
||||
['meta_url', '', '元数据url'],
|
||||
['name', '', 'nft名字'],
|
||||
['item_id', 0, '道具id'],
|
||||
['on_sale', 0, '是否出售中'],
|
||||
['type', '', 'nft类型 1:英雄 11:金砖'],
|
||||
['image', '', 'nft图片地址'],
|
||||
['detail', Union([
|
||||
[NftHeroDetailNew(), '英雄'],
|
||||
[NftGoldBullionDetail(), '英雄'],
|
||||
]), 'nft详细信息'],
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user