1
This commit is contained in:
parent
1b6b77798d
commit
7d2f2168b0
22
doc/BcUser.py
Normal file
22
doc/BcUser.py
Normal file
@ -0,0 +1,22 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import _common
|
||||
|
||||
class BcUser(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'info',
|
||||
'desc': '获取用户信息',
|
||||
'group': 'User',
|
||||
'url': 'webapp/index.php?c=BcUser&a=login',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['info',_common.BcUserInfo(), '用户信息']
|
||||
]
|
||||
},
|
||||
]
|
@ -8,30 +8,48 @@ class Wallet(object):
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'withdrawal',
|
||||
'desc': '提现(game->ERC20)',
|
||||
'desc': '提现(game->token)',
|
||||
'group': 'Wallet',
|
||||
'url': 'webapp/index.php?c=Wallet&a=withdrawal',
|
||||
'params': [
|
||||
['account', 0, '钱包账号'],
|
||||
['token', '', 'token'],
|
||||
['type', 0, '货币类型 1:金币 2:钻石'],
|
||||
['amount', '', '金额'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['seq_id', '', '提现序号(errcode = 0的时候,根据序号客户端定时调用queryWithdrawalResult接口)查询状态'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'recharge',
|
||||
'desc': '充值(ERC20->game)',
|
||||
'name': 'queryWithdrawalResult',
|
||||
'desc': '查询提现结果(game->token)',
|
||||
'group': 'Wallet',
|
||||
'url': 'webapp/index.php?c=Wallet&a=recharge',
|
||||
'url': 'webapp/index.php?c=Wallet&a=queryWithdrawalResult',
|
||||
'params': [
|
||||
['account', 0, '钱包账号'],
|
||||
['token', '', 'token'],
|
||||
['amount', '', '金额'],
|
||||
['seq_id', 0, '提现序号'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(errcode='当errcode!=0的时候客户端不需要再调用(停止定时器)'),
|
||||
['state', 0, '0:提现序号不存在 1:提现成功 2:提现处理中 3:提现失败'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'queryRechargeResult',
|
||||
'desc': '查询充值结果(token->game)',
|
||||
'group': 'Wallet',
|
||||
'url': 'webapp/index.php?c=Wallet&a=queryRechargeResult',
|
||||
'params': [
|
||||
['account', 0, '钱包账号'],
|
||||
['token', '', 'token'],
|
||||
['txhash', 0, 'hash值'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['state', 0, '0:保留 1:保留 2:充值处理中 3:充值失败'],
|
||||
]
|
||||
},
|
||||
]
|
||||
|
@ -125,6 +125,15 @@ class UserInfo(object):
|
||||
['!head_frame_list', [0], '拥有的头像框列表'],
|
||||
]
|
||||
|
||||
class BcUserInfo(object):
|
||||
|
||||
def __init__(self):
|
||||
self.fields = [
|
||||
['account', '', '账号'],
|
||||
['gold', 0, '金币'],
|
||||
['diamond', 0, '钻石'],
|
||||
]
|
||||
|
||||
class UserDetailInfo(object):
|
||||
|
||||
def __init__(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user