简要描述:
获取我的设备列表
请求域名:
- http://xx.com
请求路由:
GET/&route=plugin.yz-supply-home-water-machin.frontend.device.device.myDevice
请求参数说明:
参数名 | 类型 | 是否必需 | 说明 |
---|---|---|---|
page | int | 否 | 分页 |
page_size | int | 否 | 分页 |
返回示例:
正确时返回:
{
"result": 1,
"msg": "ok",
"data": {
"list": [
{
"id": 1,
"uniacid": 2,
"device_title": "111",
"lng": "1",
"lat": "1",
"device_address": "1",
"location_name": "1",
"device_sn": "1",
"device_barcode": "2",
"device_imei": null,
"member_id": 1,
"device_type": 1,
"address": null,
"service_status": 0,
"service_days": 0,
"status": 0,
"line_status": 0,
"created_at": null,
"updated_at": null,
"deleted_at": null,
"latest_filter_info": {
"id": 1,
"uniacid": 2,
"device_id": 1,
"filter_max_usage": "11",
"filter_used_amount": "112",
"filter_remaining_amount": "222",
"created_at": null,
"updated_at": null,
"deleted_at": null
},
"usage_status_text": "使用中",
"device_type_text": "直饮机",
"device_status_text": "关闭",
"line_status_text": "离线",
"service_status_text": "否",
"is_service_period": false
}
],
"total": 1,
"per_page": 20,
"current_page": 1,
"last_page": 1
},
"validate_page": {
"is_bind_mobile": 0,
"invite_page": 0,
"is_invite": 1,
"is_login": 1,
"invite_mobile": 1,
"bind_address": {
"is_bind_address": 0,
"bind_address_type": 0,
"bind_address_page": []
},
"need_video": 0,
"force_bind_car": 0,
"is_level_compel": 0
}
}
返回参数说明:
参数名 | 类型 | 说明 | |
---|---|---|---|
data | Object | 返回的核心数据内容。 | |
data.list | Array | 设备列表。 | |
data.list[].id | Integer | 设备ID。 | |
data.list[].uniacid | Integer | 公众号ID。 | |
data.list[].device_sn | String | 设备序列号。 | |
data.list[].device_imei | String | 设备IMEI号。 | |
data.list[].member_id | Integer | 用户ID。 | |
data.list[].device_type | Integer | 设备类型。 | |
data.list[].address | String | 设备地址。 | |
data.list[].service_status | Integer | 服务状态。 | |
data.list[].service_days | Integer | 服务天数。 | |
data.list[].status | Integer | 设备状态。 | |
data.list[].line_status | Integer | 在线状态。 | |
data.list[].created_at | String | 创建时间。 | |
data.list[].updated_at | String | 更新时间。 | |
data.list[].deleted_at | String | 删除时间(如果未删除则为null)。 | |
data.list[].latest_filter_info | Object | 最新滤芯信息对象。 | |
data.list[].latest_filter_info.id | Integer | 滤芯信息ID。 | |
data.list[].latest_filter_info.uniacid | Integer | 公众号ID。 | |
data.list[].latest_filter_info.device_id | Integer | 设备ID。 | |
data.list[].latest_filter_info.filter_max_usage | String | 滤芯最大使用量。 | |
data.list[].latest_filter_info.filter_used_amount | String | 滤芯已使用量。 | |
data.list[].latest_filter_info.filter_remaining_amount | String | 滤芯剩余量。 | |
data.list[].latest_filter_info.created_at | String | 创建时间(如果未设置则为null)。 | |
data.list[].latest_filter_info.updated_at | String | 更新时间(如果未设置则为null)。 | |
data.list[].latest_filter_info.deleted_at | String | 删除时间(如果未删除则为null)。 | |
usage_status_text | string | 滤芯使用状态 | |
data.list[].device_type_text | String | 设备类型文本描述。 | |
data.list[].device_status_text | String | 设备状态文本描述。 | |
data.list[].line_status_text | String | 在线状态文本描述。 | |
data.list[].service_status_text | String | 服务状态文本描述。 | |
data.list[].is_service_period | Boolean | 是否在服务期内。 | |
data.total | Integer | 总记录数。 | |
data.per_page | Integer | 每页显示数量。 | |
data.current_page | Integer | 当前页码。 | |
data.last_page | Integer | 最后一页页码。 |