🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
~~~[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'>&nbsp&nbsp", "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 | 创建时间 |