>[danger] 待支持设备状态和变量数量
~~~[api]
get:/index/device/index
int:limit=15#每页显示数量
int:page=1#页码
<<<
success
{
"code": 0,
"msg": "获取成功",
"count": 5,
"data": [{
"id": 6,
"uid": 2,
"area_id": 3,
"area": "一号楼-三楼-A车间",
"name": "巨型破碎机",
"model": "PSW-534",
"address": "广东省广州市",
"lng": 0,
"lat": 0,
"tag": null,
"desc": "好厉害的破碎机",
"picture": "\/uploads\/device\/ff\/3e277be3497b8b49f2621e92d80ac456847351.png",
"create_time": "2020-08-15 11:57:25",
"class_name": "app\\common\\model\\Device",
"picture_detail": "<img src='\/uploads\/device\/ff\/3e277be3497b8b49f2621e92d80ac456847351.png'>  ",
"picture_index": "<img src='\/uploads\/device\/ff\/3e277be3497b8b49f2621e92d80ac456847351.png' height='30'>",
"user_name": "蒋先生"
}, {
"id": 5,
"uid": 0,
"area_id": null,
"area": null,
"name": "111",
"model": "111111",
"address": "11111",
"lng": 0,
"lat": 0,
"tag": "111111",
"desc": "",
"picture": "\/uploads\/device\/2f\/3808c07b2eecc42bd6668379650cfe080d6268.png,\/uploads\/device\/64\/81e2e689a54957934ac075249a189653d04194.png",
"create_time": "2020-04-29 17:39:23",
"class_name": "app\\common\\model\\Device",
"picture_detail": "<img src='\/uploads\/device\/2f\/3808c07b2eecc42bd6668379650cfe080d6268.png'>  <img src='\/uploads\/device\/64\/81e2e689a54957934ac075249a189653d04194.png'>  ",
"picture_index": "<img src='\/uploads\/device\/2f\/3808c07b2eecc42bd6668379650cfe080d6268.png' height='30'>",
"user_name": null
}, {
"id": 4,
"uid": 0,
"area_id": null,
"area": null,
"name": "测试03",
"model": "1111",
"address": "韶关",
"lng": 0,
"lat": 0,
"tag": "安徽",
"desc": "这是测试3",
"picture": "\/uploads\/device\/33\/d2499477b4e77b810aedb6a2047de695b0d37b.png",
"create_time": "2020-04-20 14:21:20",
"class_name": "app\\common\\model\\Device",
"picture_detail": "<img src='\/uploads\/device\/33\/d2499477b4e77b810aedb6a2047de695b0d37b.png'>  ",
"picture_index": "<img src='\/uploads\/device\/33\/d2499477b4e77b810aedb6a2047de695b0d37b.png' height='30'>",
"user_name": null
}, {
"id": 3,
"uid": 0,
"area_id": null,
"area": null,
"name": "测试传感器33",
"model": null,
"address": null,
"lng": 0,
"lat": 0,
"tag": null,
"desc": "测试传感器",
"picture": null,
"create_time": "2020-04-02 16:22:16",
"class_name": "app\\common\\model\\Device",
"picture_detail": "<img src=''>  ",
"picture_index": "<img src='' height='30'>",
"user_name": null
}, {
"id": 2,
"uid": 0,
"area_id": null,
"area": null,
"name": "测试传感器",
"model": null,
"address": null,
"lng": 0,
"lat": 0,
"tag": null,
"desc": "测试项目2",
"picture": "\/uploads\/device\/33\/d2499477b4e77b810aedb6a2047de695b0d37b.png",
"create_time": "2020-04-02 14:46:41",
"class_name": "app\\common\\model\\Device",
"picture_detail": "<img src='\/uploads\/device\/33\/d2499477b4e77b810aedb6a2047de695b0d37b.png'>  ",
"picture_index": "<img src='\/uploads\/device\/33\/d2499477b4e77b810aedb6a2047de695b0d37b.png' height='30'>",
"user_name": null
}]
}
<<<
error
{
"code": 1,
"msg": "请先登录"
}
~~~
| 字段 | 说明 |
| --- | --- |
| id | 设备ID |
| area | 区域分组 |
| info | 日志详情 |
| name | 设备名称 |
| model | 设备型号 |
| address | 设备地址 |
| tag | 标签,多个标签以英文逗号`,`隔开 |