简要描述:
请求域名:
- http://xx.com
请求路由:
POST/&route=plugin.yz-supply-under-sink-machine.frontend.privilege.privilege.getPrivilegeDetails
请求参数说明:
| 参数名 | 类型 | 是否必需 | 说明 |
|---|---|---|---|
| page | int | 是 | 分页 |
| pageSize | int | 是 | 分页 |
| device_id | int | 设备id |
返回示例:
正确时返回:
{
"result": 1,
"msg": "成功",
"data": {
"list": [
{
"id": 1,
"device_imei": "321312321312",
"device_sn": "",
"recharge_record_id": 3,
"usage_value": 10,
"remaining_before": 1000,
"remaining_after": 990,
"record_remaining_before": 0,
"record_remaining_after": 0,
"usage_type": 1,
"usage_type_desc": "手动扣除",
"usage_description": "测试扣除",
"created_at": 1762418292,
"updated_at": 1762418292,
"privilege_validity": {
"id": 1,
"get_way": 2,
"get_way_text": "后台充值"
}
}
],
"total": 1,
"page": 1,
"pageSize": 20,
"device_info": {
"id": 1,
"device_sn": null,
"device_imei": "321312321312"
}
}
}
返回参数说明:
| 参数名 | 类型 | 说明 | |
|---|---|---|---|
| ID | uint | 主键ID | |
| DeviceIMEI | string | 设备IMEI号 | |
| DeviceSN | string | 设备序列号 | |
| RechargeRecordID | uint | 充值记录ID | |
| UsageValue | uint16 | 扣除水量(L) | |
| RemainingBefore | uint16 | 设备总剩余水量(扣除前) | |
| RemainingAfter | uint16 | 设备总剩余水量(扣除后) | |
| RecordRemainingBefore | uint16 | 充值记录剩余水量(使用前) | |
| RecordRemainingAfter | uint16 | 充值记录剩余水量(使用后) | |
| UsageType | int | 使用类型 | |
| UsageTypeDesc | string | 使用类型描述 | |
| UsageDescription | string | 使用说明 | |
| CreatedAt | int64 | 创建时间戳 | |
| UpdatedAt | int64 | 更新时间戳 | |
| privilege_validity | 权益信息 |