...
This commit is contained in:
parent
4a702773fc
commit
d9809bf9d3
@ -28,6 +28,21 @@ class CurrencyType(object):
|
|||||||
['name', '', '货币名称'],
|
['name', '', '货币名称'],
|
||||||
['address', '', '货币地址'],
|
['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):
|
class Market(object):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@ -418,5 +433,24 @@ class Market(object):
|
|||||||
_common.RspHead(),
|
_common.RspHead(),
|
||||||
['!list', [CurrencyType()], '货币类型列表'],
|
['!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()], '交易记录列表'],
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user