diff --git a/doc/Wallet.py b/doc/Wallet.py new file mode 100644 index 00000000..db169b63 --- /dev/null +++ b/doc/Wallet.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- + +import _common + +class Wallet(object): + + def __init__(self): + self.apis = [ + { + 'name': 'withdrawal', + 'desc': '提现(game->ERC20)', + 'group': 'Wallet', + 'url': 'webapp/index.php?c=Wallet&a=withdrawal', + 'params': [ + ['account', 0, '钱包账号'], + ['token', '', 'token'], + ['amount', '', '金额'], + ], + 'response': [ + _common.RspHead(), + ] + }, + { + 'name': 'recharge', + 'desc': '充值(ERC20->game)', + 'group': 'Wallet', + 'url': 'webapp/index.php?c=Wallet&a=recharge', + 'params': [ + ['account', 0, '钱包账号'], + ['token', '', 'token'], + ['amount', '', '金额'], + ], + 'response': [ + _common.RspHead(), + ] + }, + ]