This commit is contained in:
aozhiwei 2024-06-06 11:49:31 +08:00
parent fe2df1481a
commit 294d5566bc
2 changed files with 68 additions and 0 deletions

57
doc/AANft.py Normal file
View File

@ -0,0 +1,57 @@
import _common
class AANft(object):
def __init__(self):
self.apis = [
{
'name': '/hero/home_meta/:net_id',
'desc': '获取英雄nft元信息主页',
'group': '!AANft',
'url': 'https://nft-test.kingsome.cn/hero/home_meta/:net_id',
'params': [
[':net_id', '', '链id'],
],
'response': [
_common.NftHomeMeta(),
]
},
{
'name': '/gold_bullion/home_meta/:net_id',
'desc': '获取金砖nft元信息主页',
'group': '!AANft',
'url': 'https://nft-test.kingsome.cn/gold_bullion/home_meta/:net_id',
'params': [
[':net_id', '', '链id'],
],
'response': [
_common.NftHomeMeta(),
]
},
{
'name': '/hero/meta/:net_id/:token_id',
'desc': '获取英雄nft元信息',
'group': '!AANft',
'url': 'https://nft-test.kingsome.cn/hero/meta/:net_id/:token_id',
'params': [
[':net_id', '', '链id'],
[':token_id', '', 'tokenId'],
],
'response': [
_common.NftHomeMeta(),
]
},
{
'name': '/gold_bullion/meta/:net_id/:token_id',
'desc': '获取金砖nft元信息',
'group': '!AANft',
'url': 'https://nft-test.kingsome.cn/gold_bullion/meta/:net_id/:token_id',
'params': [
[':net_id', '', '链id'],
[':token_id', '', 'tokenId'],
],
'response': [
_common.NftHomeMeta(),
]
},
]

View File

@ -1669,3 +1669,14 @@ class MFTransactionRequest(object):
['to', '', '调用的目标合约地址'],
['data', '', '包含报文相关的字节字符串'],
]
class NftHomeMeta(object):
def __init__(self):
self.fields = [
['name', '', 'nft名字'],
['symbol', '', 'symbol'],
['description', '', 'nft描述'],
['image', '', 'nft图片地址'],
['external_link', '', 'nft链接'],
]