~~~[api]
get:/index/device/index
*int:id#設備ID
<<<
success
{
"code": 0,
"msg": "獲取成功",
"count": 1,
"data": [{
"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
}]
}
<<<
error
{
"code": 1,
"msg": "請先登錄"
}
~~~
| 字段 | 說明 |
| --- | --- |
| id | 設備ID |
| area | 區域分組 |
| info | 日志詳情 |
| name | 設備名稱 |
| model | 設備型號 |
| address | 設備地址 |
| tag | 標簽,多個標簽以英文逗號`,`隔開 |
| desc | 設備介紹 |
| picture | 設備圖 |
| create_time | 創建時間 |