This commit is contained in:
songliang 2023-01-28 11:20:26 +08:00
parent 4a702773fc
commit d9809bf9d3

View File

@ -28,6 +28,21 @@ class CurrencyType(object):
['name', '', '货币名称'],
['address', '', '货币地址'],
]
class TransactionRecord(object):
def __init__(self):
self.fields = [
['idx', 0, 'idx'],
['createtime', 0, '交易成功时间'],
['orderid', 0, 'market订单id'],
['o_link', '', '合约订单id'],
['seller', '', '卖家'],
['buyer', '', '买家'],
['tokenid', '', 'tokenid'],
['amount', 0, '商品数量'],
['name', '', '商品名称'],
['type', 0, '商品类型'],
]
class Market(object):
def __init__(self):
@ -418,5 +433,24 @@ class Market(object):
_common.RspHead(),
['!list', [CurrencyType()], '货币类型列表'],
]
}
},
{
'name': 'getTransactionRecord',
'desc': '获取交易记录',
'group': 'Market',
'url': 'webapp/index.php?c=Market&a=getTransactionRecord',
'params': [
['account', '', '账号id'],
['start', 0, '分页开始偏移'],
['page_size', 0, '分页大小'],
],
'response': [
_common.RspHead(),
['total', 0, '交易记录总数'],
['start', 0, '有效的分页偏移'],
['page_size', 0, '有效的分页大小'],
['!list', [TransactionRecord()], '交易记录列表'],
]
}
]