查询设备列表
接口地址 /device-monitor/api/v1/open/device
请求方式 GET
接口描述 ``
请求参数
| 参数名称 | 参数说明 | 请求类型 | 是否必须 | 数据类型 | schema |
|---|---|---|---|---|---|
| filter | RSQL表达式 | query | false | string |
filter中支持以下参数筛选:
| 参数 | 类型 | 说明 | |
|---|---|---|---|
| description | string | 设备描述 | |
| deviceName | string | 设备名称 | |
| deviceNo | string | 设备序号 | |
| deviceType | string | 设备类型 | |
| funcDesc | string | 设备功能 | |
| id | string | 主键 | |
| inputTime | string | 录入时间 | |
| inputUserId | string | 录入人ID | |
| lastDevice | string | 是否最后设备 | |
| modifyTime | string | 修改人时间 | |
| modifyUserId | string | 修改人ID | |
| sigUid | string | 三色灯编号 | |
| specsDesc | string | 设备规格 | |
| tenantId | string | ||
| version | integer(int32) | 数据版本号 | |
| workarea | 工作区域(生产线) | 生产线 | 工作区域(生产线) |
| code | string | 生产线编号 | |
| description | string | 备注 | |
| id | string | 主键 | |
| inputTime | string | 录入时间 | |
| inputUserId | string | 录入人ID | |
| modifyTime | string | 修改人时间 | |
| modifyUserId | string | 修改人ID | |
| name | string | 生产线名称 | |
| tenantId | string | ||
| valuePerHour | number(double) | 单位时间产值(万元/小时) | |
| version | integer(int32) | 数据版本号 | |
| workshop | 车间 | 所属车间 | 车间 |
| code | string | 车间编号 | |
| description | string | 备注 | |
| id | string | 主键 | |
| inputTime | string | 录入时间 | |
| inputUserId | string | 录入人ID | |
| modifyTime | string | 修改人时间 | |
| modifyUserId | string | 修改人ID | |
| name | string | 车间名称 | |
| tenantId | string | ||
| version | integer(int32) | 数据版本号 |
|
响应状态
| 状态码 | 说明 | schema |
|---|---|---|
| 0 | 成功 | |
| 200 | 操作成功 | 设备 |
| 40001 | token超时,请重新登录 | |
| 40003 | 缺少token参数 | |
| -1 | 系统繁忙 | |
| -2 | 服务超时 |
{"data": [{"description": null,"deviceName": "Tst","deviceNo": "1234","deviceType": null,"funcDesc": null,"id": "129996177801216","inputTime": "2021-12-18 10:36:48","inputUserId": "43507d0a-802d-42eb-9deb-4dcdbe108356","lastDevice": "0","modifyTime": "2021-12-25 14:44:35","modifyUserId": "43507d0a-802d-42eb-9deb-4dcdbe108356","sigUid": "867038035394297","specsDesc": null,"tenantId": "43507d0a-802d-42eb-9deb-4dcdbe108356","version": 1,"workarea": {"code": "0003","description": null,"id": "129832180514816","inputTime": "2021-12-17 12:53:28","inputUserId": "43507d0a-802d-42eb-9deb-4dcdbe108356","modifyTime": "2021-12-17 12:53:44","modifyUserId": "43507d0a-802d-42eb-9deb-4dcdbe108356","name": "模具生产线","tenantId": "43507d0a-802d-42eb-9deb-4dcdbe108356","valuePerHour": 13.56,"version": 1,"workshop": {"code": "0002","description": null,"id": "129832109211648","inputTime": "2021-12-17 12:52:54","inputUserId": "43507d0a-802d-42eb-9deb-4dcdbe108356","modifyTime": null,"modifyUserId": null,"name": "制造车间","tenantId": "43507d0a-802d-42eb-9deb-4dcdbe108356","version": 0}}}],"error": false,"extra": null,"message": null,"page": null,"path": null,"success": true,"timestamp": 1641127775121}
