diff --git a/doc/Market.py b/doc/Market.py index 50d75881..1f6589e7 100644 --- a/doc/Market.py +++ b/doc/Market.py @@ -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()], '货币类型列表'], + ] + } ]