换电APP接口文档


用户信息

请求URL
  • api/miniapp/user/userInfo
请求方式
  • GET
请求参数
参数名 必选 类型 说明
x-token string token放到header传
deviceCode string 传空字符串
正常返回示例
{
    "rtnCode": 1,
    "message": "success",
    "data": {
        "useInsurance": 1,
        "categoryConfigs": [{
            "isDelete": 0,
            "secondDays": 2,
            "storeId": null,
            "status": 0,
            "insuranceDeposit": 200,
            "thirdRent": 200,
            "manuId": 153,
            "firstDays": 2,
            "firstRent": 200,
            "agentShare": 0,
            "voltage": 22,
            "exist": false,
            "id": 298,
            "deposit": 200,
            "premium": 200,
            "secondRent": 200,
            "capacity": 22,
            "createTime": "2022-03-30 13:35:28",
            "salerId": 0,
            "shareUserId": 199,
            "agentId": 0,
            "thirdDays": 2,
            "isLease": 1,
            "deviceCode": "",
            "categoryId": 336,
            "name": "发发",
            "description": "发发"
        }, {
            "isLease": 1,
            "voltage": 40,
            "deviceCode": "",
            "exist": false,
            "categoryId": 320,
            "agentShare": 1000,
            "description": "小微测分成",
            "createTime": "2022-03-03 17:04:10",
            "secondRent": 10,
            "shareUserId": 199,
            "firstRent": 100,
            "thirdDays": 10,
            "deposit": 100,
            "manuId": 153,
            "agentId": 0,
            "status": 0,
            "insuranceDeposit": 150,
            "secondDays": 11,
            "storeId": null,
            "id": 283,
            "salerId": 0,
            "isDelete": 0,
            "premium": 1,
            "firstDays": 10,
            "thirdRent": 10,
            "capacity": 20,
            "name": "小微测分成"
        }, {
            "capacity": 23,
            "exist": false,
            "createTime": "2022-02-26 16:17:18",
            "voltage": 12,
            "deposit": 4500,
            "name": "验证码押金测试",
            "agentId": 0,
            "secondDays": 89,
            "thirdRent": 10100,
            "manuId": 153,
            "premium": 3400,
            "agentShare": 100,
            "id": 280,
            "isDelete": 0,
            "status": 0,
            "insuranceDeposit": 5600,
            "firstDays": 67,
            "shareUserId": 199,
            "description": "验证码押金测试",
            "thirdDays": 100,
            "storeId": null,
            "deviceCode": "",
            "secondRent": 9000,
            "categoryId": 316,
            "salerId": 0,
            "firstRent": 7800,
            "isLease": 1
        }, {
            "agentShare": 1000,
            "id": 267,
            "name": "租赁测试电池",
            "insuranceDeposit": 10,
            "secondDays": 60,
            "exist": false,
            "categoryId": 301,
            "isDelete": 0,
            "voltage": 48,
            "deposit": 100,
            "thirdRent": 150,
            "premium": 1,
            "firstRent": 10,
            "description": "租赁测试电池",
            "firstDays": 30,
            "thirdDays": 90,
            "isLease": 1,
            "shareUserId": 199,
            "deviceCode": "",
            "createTime": "2022-02-11 10:53:57",
            "status": 0,
            "salerId": 0,
            "secondRent": 100,
            "capacity": 48,
            "storeId": null,
            "manuId": 153,
            "agentId": 0
        }, {
            "name": "测试",
            "isDelete": 0,
            "secondDays": 101,
            "thirdDays": 101,
            "capacity": 1,
            "id": 248,
            "description": "测试",
            "salerId": 0,
            "premium": 100,
            "firstDays": 101,
            "firstRent": 1100,
            "voltage": 1,
            "agentShare": 0,
            "exist": false,
            "deposit": 100,
            "manuId": 153,
            "agentId": 0,
            "status": 0,
            "secondRent": 1100,
            "thirdRent": 1100,
            "categoryId": 278,
            "createTime": "2022-01-17 15:06:41",
            "insuranceDeposit": 100,
            "isLease": 0,
            "storeId": null,
            "deviceCode": ""
        }, {
            "description": "小罗测试押金",
            "deposit": 200,
            "createTime": "2021-12-28 16:32:39",
            "capacity": 12,
            "deviceCode": "",
            "categoryId": 252,
            "name": "小罗测试押金",
            "manuId": 153,
            "agentId": 0,
            "insuranceDeposit": 100,
            "firstDays": 11,
            "isLease": 0,
            "id": 221,
            "isDelete": 0,
            "firstRent": 100,
            "secondRent": 100,
            "thirdRent": 100,
            "agentShare": 0,
            "storeId": null,
            "salerId": 0,
            "premium": 100,
            "secondDays": 1,
            "thirdDays": 1,
            "voltage": 12,
            "exist": false,
            "status": 0
        }, {
            "isLease": 0,
            "id": 220,
            "isDelete": 0,
            "firstDays": 20,
            "secondDays": 180,
            "categoryId": 251,
            "manuId": 153,
            "secondRent": 150000,
            "insuranceDeposit": 100,
            "firstRent": 1,
            "thirdRent": 300000,
            "capacity": 12,
            "name": "测试线下电池支付",
            "deposit": 100,
            "salerId": 0,
            "premium": 1,
            "deviceCode": "",
            "exist": false,
            "thirdDays": 365,
            "agentShare": 0,
            "voltage": 12,
            "storeId": null,
            "description": "测试线下电池支付",
            "createTime": "2021-12-21 09:52:02",
            "agentId": 0,
            "status": 0
        }, {
            "thirdRent": 100,
            "capacity": 1,
            "exist": false,
            "deposit": 100,
            "salerId": 0,
            "premium": 0,
            "insuranceDeposit": 0,
            "firstRent": 100,
            "createTime": "2021-12-13 11:35:05",
            "status": 0,
            "secondRent": 100,
            "isLease": 0,
            "thirdDays": 1,
            "voltage": 1,
            "deviceCode": "",
            "id": 198,
            "name": "共有类型测试",
            "agentId": 0,
            "firstDays": 11,
            "secondDays": 1,
            "storeId": null,
            "categoryId": 234,
            "description": "共有测试押金1",
            "manuId": 153,
            "isDelete": 0,
            "agentShare": 0
        }, {
            "name": "测试押金3",
            "manuId": 153,
            "insuranceDeposit": 10,
            "agentShare": 0,
            "isLease": 0,
            "id": 186,
            "categoryId": 63,
            "salerId": 0,
            "firstDays": 30,
            "capacity": 20,
            "deviceCode": "",
            "deposit": 100,
            "createTime": "2021-12-08 17:26:27",
            "isDelete": 0,
            "status": 0,
            "premium": 10,
            "secondDays": 30,
            "thirdRent": 10,
            "exist": false,
            "description": "测试押金3",
            "agentId": 0,
            "firstRent": 10,
            "secondRent": 10,
            "thirdDays": 10,
            "voltage": 48,
            "storeId": null
        }, {
            "premium": 100,
            "firstRent": 1,
            "thirdDays": 1,
            "agentShare": 0,
            "voltage": 40,
            "description": "4820(测试)",
            "createTime": "2021-12-04 16:01:51",
            "salerId": 0,
            "deviceCode": "",
            "status": 0,
            "isLease": 0,
            "exist": false,
            "id": 172,
            "categoryId": 87,
            "deposit": 100,
            "thirdRent": 1,
            "capacity": 40,
            "storeId": null,
            "name": "4820(测试)",
            "isDelete": 0,
            "insuranceDeposit": 100,
            "secondDays": 1,
            "secondRent": 1,
            "manuId": 153,
            "agentId": 0,
            "firstDays": 1
        }, {
            "manuId": 153,
            "agentId": 0,
            "firstDays": 10,
            "agentShare": 0,
            "id": 144,
            "categoryId": 61,
            "description": "测试押金2",
            "isDelete": 0,
            "premium": 1,
            "secondDays": 1,
            "capacity": 20,
            "status": 0,
            "firstRent": 1,
            "thirdDays": 1,
            "isLease": 0,
            "voltage": 60,
            "deviceCode": "",
            "exist": false,
            "name": "测试押金2",
            "deposit": 100,
            "createTime": "2021-12-02 14:05:44",
            "salerId": 0,
            "insuranceDeposit": 3000,
            "secondRent": 100,
            "thirdRent": 100,
            "storeId": null
        }],
        "unReadNoticeMessages": [],
        "wechatAdvertisings": [],
        "userHaveBatteryRent": [],
        "vehicleDepositNum": 0,
        "userHaveBatteryList": [],
        "userHaveBatteryMeal": [],
        "batteries": [],
        "monthCardLeftTotal": 0,
        "userInfo": {
            "floatChargeStrategy": "o0",
            "memo": "",
            "userType": 1,
            "updateTime": "2022-09-19 19:30:38",
            "salerId": 0,
            "nickName": "微信用户",
            "deposit": 0,
            "phone": "13711238300",
            "createTime": "2022-09-14 13:42:13",
            "synchronizationState": 1,
            "id": 12960,
            "amountPresent": 0,
            "serverId": 51,
            "headImgUrl": "",
            "province": "",
            "sex": 0,
            "tradeSts": 4,
            "openId": "o2D9a5Ei0GIDKAzPb8teYYQFX2FY",
            "amount": 0,
            "authenticationFrequency": 0,
            "transferState": 0,
            "cerficationState": 1,
            "haveBattery": 0,
            "manuId": 153,
            "agentId": 0,
            "amountCash": 0,
            "city": ""
        },
        "unReadMessages": [],
        "depositNumber": 0,
        "depositRefunds": [],
        "modeSts": 1,
        "monthCardLeftFee": 0,
        "monthCardLeftToday": -10,
        "userConfigs": [],
        "monthCards": [],
        "litmitFee": 0
    }
}
错误返回示例
{

}
追加返回参数说明
参数名 类型 说明
rtnCode boolean 此参数为true表示请求成功,false请求失败
message string 提示信息
data object 返回结果,正常返回为string类型,错误返回null
备注

成功返回的obj参数为带code的url链接,跳转到此链接即可进入对应账号的云酷后台管理系统

页面列表

ITEM_HTML