# 我的钱包
# 钱包中心
请求地址:ucenter/wallet
请求方式:GET
需要授权:是
返回结果
// 成功返回
{
    "code": 1, 
    "msg": "ok", 
    "data": {
        "id": 2, 
        "username": "test", 
        "nickname": "test", 
        "group_name": "钻石会员", 
        "shop_count": 0, 
        "birthday": 0, 
        "sex": 0, 
        "is_spread": true, 
        "mobile": "18026740325", 
        "point": 198, 
        "amount": "15300.00", 
        "avatar": null, 
        "order_count": {}, 
        "switch_1": true, 
        "switch_2": true, 
        "recharge_amount": 0, 
        "consume_amount": 329
    }
}
// 失败返回
{
    "msg":"",
    "code":0
}
# 充值
请求地址:users.recharge/index
请求方式:POST
需要授权:是
请求参数
| 参数 | 类型 | 描述 | 
|---|---|---|
| payment | string | 支付类型 | 
| source | int | 终端类型 | 
| price | int | float | 
| url | string | 域名,只对H5有效 | 
返回结果
// 成功返回
{
    "code": 1, 
    "msg": "ok", 
    "data": {
        // ...
    }
}
// 失败返回
{
    "msg":"",
    "code":0
}
# 提现记录
请求地址:ucenter/cashlist
请求方式:GET
需要授权:是
请求参数
| 参数 | 类型 | 描述 | 
|---|---|---|
| page | int | 页码 | 
返回结果
// 成功返回
{
    "code": 1, 
    "msg": "ok", 
    "data": {
        "list": [
			// ...
		], 
        "page": 1, 
        "total": 100, 
        "size": 10
    }
}
// 失败返回
{
    "msg":"",
    "code":0
}
# 申请提现
请求地址:ucenter/settlement
请求方式:GET
需要授权:是
返回结果
// 成功返回
{
    "code": 1, 
    "msg": "ok", 
    "data": {
        "bank": [
            "中国工商银行", 
            "中国农业银行", 
            "中国建设银行", 
            "招商银行", 
            "中国邮政储蓄银行"
        ], 
        "money": "11111.00"
    }
}
// 失败返回
{
    "msg":"",
    "code":0
}
提交提现
请求地址:ucenter/settlement_save
请求方式:POST
需要授权:是
请求参数
| 参数 | 类型 | 描述 | 
|---|---|---|
| bank_type | string | 银行名称 | 
| code | string | 银行卡号 | 
| name | string | 持卡人 | 
| price | string | 提现金额 | 
返回结果
// 成功返回
{
    "code": 0, 
    "msg": "申请提现成功,请等待管理员审核", 
    "data": null
}
// 失败返回
{
    "msg":"",
    "code":0
}
# 资金明细
请求地址:ucenter/fund
请求方式:GET
需要授权:是
请求参数
| 参数 | 类型 | 描述 | 
|---|---|---|
| page | int | 页码 | 
返回结果
// 成功返回
{
    "code": 1, 
    "msg": "ok", 
    "data": {
        "list": [
			// ...
		], 
        "page": 1, 
        "total": 100, 
        "size": 10
    }
}
// 失败返回
{
    "msg":"",
    "code":0
}