1
This commit is contained in:
parent
3993f03efb
commit
87f009a0a3
@ -2,47 +2,6 @@
|
|||||||
|
|
||||||
import _common
|
import _common
|
||||||
|
|
||||||
class NftIntro(object):
|
|
||||||
|
|
||||||
def __init__(self):
|
|
||||||
self.fields = [
|
|
||||||
['idx', 0, 'idx'],
|
|
||||||
['token_id', '', 'token_id'],
|
|
||||||
['token_type', 0, 'nft类型 1:英雄 2:枪支 3:芯片'],
|
|
||||||
['amount', 0, '堆叠数量'],
|
|
||||||
['createtime', 0, '创建时间(上架时间)'],
|
|
||||||
['modifytime', 0, '修改时间(更新价格等)'],
|
|
||||||
['s_price', 0, '出售价格-暂定'],
|
|
||||||
['c_name', '', '缓存-名称'],
|
|
||||||
['c_job', 0, '缓存-职业'],
|
|
||||||
['c_lv', 0, '缓存-级别'],
|
|
||||||
['c_id', 0, '缓存-idx'],
|
|
||||||
['selling', 0, '正在售卖的个数'],
|
|
||||||
['o_link', '', '关联的售卖单号'],
|
|
||||||
['details', _common.NftDetail(), 'nft列表'],
|
|
||||||
]
|
|
||||||
|
|
||||||
class CurrencyType(object):
|
|
||||||
def __init__(self):
|
|
||||||
self.fields = [
|
|
||||||
['name', '', '货币名称'],
|
|
||||||
['address', '', '货币地址'],
|
|
||||||
]
|
|
||||||
|
|
||||||
class TransactionRecord(object):
|
|
||||||
def __init__(self):
|
|
||||||
self.fields = [
|
|
||||||
['idx', '', 'idx'],
|
|
||||||
['createtime', 0, '交易成功时间'],
|
|
||||||
['order_id', 0, 'market订单id'],
|
|
||||||
['o_link', '', '合约订单id'],
|
|
||||||
['seller', '', '卖家'],
|
|
||||||
['buyer', '', '买家'],
|
|
||||||
['tokenid', '', 'tokenid'],
|
|
||||||
['amount', 0, '商品数量'],
|
|
||||||
['name', '', '商品名称'],
|
|
||||||
['type', 0, '商品类型'],
|
|
||||||
]
|
|
||||||
class Market(object):
|
class Market(object):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@ -121,7 +80,7 @@ class Market(object):
|
|||||||
['total', 0, '出售的列表总数量(当前过滤配置)'],
|
['total', 0, '出售的列表总数量(当前过滤配置)'],
|
||||||
['start', 0, '有效的分页偏移'],
|
['start', 0, '有效的分页偏移'],
|
||||||
['page_size', 0, '有效的分页大小'],
|
['page_size', 0, '有效的分页大小'],
|
||||||
['!nfts', [NftIntro()], 'nft列表'],
|
['!nfts', [_common.NftIntro()], 'nft列表'],
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -148,7 +107,7 @@ class Market(object):
|
|||||||
['total', 0, '出售的列表总数量(当前过滤配置)'],
|
['total', 0, '出售的列表总数量(当前过滤配置)'],
|
||||||
['start', 0, '有效的分页偏移'],
|
['start', 0, '有效的分页偏移'],
|
||||||
['page_size', 0, '有效的分页大小'],
|
['page_size', 0, '有效的分页大小'],
|
||||||
['!nfts', [NftIntro()], 'nft列表'],
|
['!nfts', [_common.NftIntro()], 'nft列表'],
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -265,7 +224,7 @@ class Market(object):
|
|||||||
],
|
],
|
||||||
'response': [
|
'response': [
|
||||||
_common.RspHead(),
|
_common.RspHead(),
|
||||||
['!list', [CurrencyType()], '货币类型列表'],
|
['!list', [_common.CurrencyType()], '货币类型列表'],
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -284,7 +243,7 @@ class Market(object):
|
|||||||
['total', 0, '交易记录总数'],
|
['total', 0, '交易记录总数'],
|
||||||
['start', 0, '有效的分页偏移'],
|
['start', 0, '有效的分页偏移'],
|
||||||
['page_size', 0, '有效的分页大小'],
|
['page_size', 0, '有效的分页大小'],
|
||||||
['!list', [TransactionRecord()], '交易记录列表'],
|
['!list', [_common.TransactionRecordNew()], '交易记录列表'],
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -1257,3 +1257,45 @@ class InappPurchaseRecord(object):
|
|||||||
['orderId', '', 'google订单id'],
|
['orderId', '', 'google订单id'],
|
||||||
['status', 0, '订单状态'],
|
['status', 0, '订单状态'],
|
||||||
]
|
]
|
||||||
|
|
||||||
|
class TransactionRecordNew(object):
|
||||||
|
def __init__(self):
|
||||||
|
self.fields = [
|
||||||
|
['idx', '', 'idx'],
|
||||||
|
['createtime', 0, '交易成功时间'],
|
||||||
|
['order_id', 0, 'market订单id'],
|
||||||
|
['o_link', '', '合约订单id'],
|
||||||
|
['seller', '', '卖家'],
|
||||||
|
['buyer', '', '买家'],
|
||||||
|
['tokenid', '', 'tokenid'],
|
||||||
|
['amount', 0, '商品数量'],
|
||||||
|
['name', '', '商品名称'],
|
||||||
|
['type', 0, '商品类型'],
|
||||||
|
]
|
||||||
|
|
||||||
|
class CurrencyType(object):
|
||||||
|
def __init__(self):
|
||||||
|
self.fields = [
|
||||||
|
['name', '', '货币名称'],
|
||||||
|
['address', '', '货币地址'],
|
||||||
|
]
|
||||||
|
|
||||||
|
class NftIntro(object):
|
||||||
|
|
||||||
|
def __init__(self):
|
||||||
|
self.fields = [
|
||||||
|
['idx', 0, 'idx'],
|
||||||
|
['token_id', '', 'token_id'],
|
||||||
|
['token_type', 0, 'nft类型 1:英雄 2:枪支 3:芯片'],
|
||||||
|
['amount', 0, '堆叠数量'],
|
||||||
|
['createtime', 0, '创建时间(上架时间)'],
|
||||||
|
['modifytime', 0, '修改时间(更新价格等)'],
|
||||||
|
['s_price', 0, '出售价格-暂定'],
|
||||||
|
['c_name', '', '缓存-名称'],
|
||||||
|
['c_job', 0, '缓存-职业'],
|
||||||
|
['c_lv', 0, '缓存-级别'],
|
||||||
|
['c_id', 0, '缓存-idx'],
|
||||||
|
['selling', 0, '正在售卖的个数'],
|
||||||
|
['o_link', '', '关联的售卖单号'],
|
||||||
|
['details', NftDetail(), 'nft列表'],
|
||||||
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user