This commit is contained in:
songliang 2022-12-22 16:50:16 +08:00
parent c8a01d8cd3
commit 2e94814b36

View File

@ -19,6 +19,13 @@ class NftIntro(object):
['c_id', 0, '缓存-idx'],
['details', _common.NftDetail(), 'nft列表'],
]
class CurrencyType(object):
def __init__(self):
self.fields = [
['name', '', '货币名称'],
['address', '', '货币地址'],
]
class Market(object):
def __init__(self):
@ -397,4 +404,17 @@ class Market(object):
_common.RspHead()
]
},
{
'name': 'getSupportedCurrencyTypes',
'desc': '获取支持的货币类型',
'group': 'Market',
'url': 'webapp/index.php?c=Market&a=getSupportedCurrencyTypes',
'params': [
['account', '', '账号id'],
],
'response': [
_common.RspHead(),
['!list', [CurrencyType()], '货币类型列表'],
]
}
]