game2006api/doc/OutAppNft.py
hujiabin 03b72f8195 1
2023-10-18 14:24:13 +08:00

39 lines
1.1 KiB
Python

# -*- coding: utf-8 -*-
import _common
class OutAppNft(object):
def __init__(self):
self.apis = [
{
'name': 'getNftList',
'desc': 'nft列表',
'group': 'OutAppNft',
'url': 'webapp/index.php?c=OutAppNft&a=getNftList',
'params': [
['address', '', '钱包地址'],
['type', 0, '类型 1:英雄 6:gacha 7:勋章 8:星球'],
],
'response': [
_common.RspHead(),
['!nfts', [NftInfo()], 'nft列表'],
]
},
]
class NftInfo(object):
def __init__(self):
self.fields = [
['idx', 0, 'idx'],
['owner_address', '', '钱包地址'],
['item_id', 0, 'item_id'],
['token_id', 0, 'token_id'],
['token_type', 0, 'token_type'],
['contract_address', '', '合约地址'],
['image', '', '头像立绘'],
['full_image', '', '全身立绘'],
['!details', [], '详细'],
]