根据条件查询控制设备信息
GET
https://ws.25soft.com/api-web-v1/operates
请求参数
Query 参数
label
string
查询的字段名
示例值:
name
search
string
可选
示例值:
机柜电源
page
string
可选
示例值:
1
limit
string
可选
示例值:
2
Header 参数
Authorization
string
可选
示例值:
Bearer {{token}}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://ws.25soft.com/api-web-v1/operates' \
--header 'Authorization: Bearer {{token}}'
返回响应
🟢200成功
application/json
Body
code
number
是否成功
data
object
返回数据
total
number
可选
rows
array [object {22}]
当前返回的设备对象列表
示例
{
"code": 0,
"data": {
"total": 1,
"rows": [
{
"line": true,
"value": 1,
"valueStr": "开启",
"_id": "601372e3bce064001cdf96a8",
"name": "机柜电源",
"icon": "icon-kongkai",
"interval": "[[\"开启\",\"关闭\"],[1,0]]",
"sort": 10,
"canRead": true,
"uiTemplate": {
"_id": "5d68cea8b095511214f11905",
"name": "开关",
"createdAt": "2019-08-30T07:22:16.192Z",
"updatedAt": "2019-08-30T07:37:50.277Z",
"__v": 0,
"templateComponentName": "SwitchOperate"
},
"control": {
"onlineTime": 1674061433544,
"_id": "5de7a052cb4761001b336e18",
"name": "公司的网关110",
"packageData": {
"hardwareWord": [],
"_id": "5d9effc5377ce1001b9058cb",
"name": "入门套餐",
"number": 10000,
"year": 2,
"createdAt": "2023-01-18T13:00:11.585Z",
"updatedAt": "2023-01-18T13:00:11.585Z",
"__v": 4,
"status": true,
"cloudType": true,
"activeTime": "2019-12-04T12:02:26.209Z",
"exceedTime": "2021-12-03T12:02:26.210Z"
},
"sdk": "E6E04A40-168D-11EA-8399-D92575F73FFF",
"creator": "5da994550dc418001b95d36f",
"controlModel": "5d035878613e0b43efa09fe8",
"serialData": [
{
"_id": "5d22fe461d859e3584a1ebea",
"comName": "/dev/ttyAMA0",
"baud": 115200,
"verification": "none",
"stopBit": 1,
"dataBit": 8,
"state": true,
"lineAt": "2020-03-06T02:07:15.747Z"
}
],
"createdAt": "2019-12-04T12:02:26.226Z",
"updatedAt": "2023-01-18T17:03:53.568Z",
"number": "018f",
"__v": 8,
"clientId": "company-test01",
"ip_address": "172.16.17.135",
"line": false,
"version": "On branch develop",
"temp": "57.452",
"size": "3.6M\n",
"dbsize": "1.2G\n",
"runNode": "main",
"localIp": "192.168.1.6\n",
"cpusize": "31.5\n",
"memsize": "54.4",
"systemDate": "Wed Jan 18 21:00:00 CST 2023\n",
"type": 0
},
"shortAddress": "9",
"parentName": "Hardware",
"parent": {
"line_status": 0,
"tags": [
"空开",
"灯"
],
"_id": "601372a7bce064001cdf94f9",
"name": "智能空开-曼顿-10路01",
"line": false,
"isShow": true,
"type": 1,
"status": 0,
"loraSlave": "60136f29bce064001cdf8785",
"control": "5de7a052cb4761001b336e18",
"hardwareWord": "5e15522180a475001bcbd756",
"serialData": {
"_id": "5e15522180a475001bcbd757",
"comName": null,
"baud": 19200,
"verification": "none",
"stopBit": 1,
"dataBit": 8,
"state": false,
"address": null
},
"uiModel": "5e6ef4bf650afd001b8e92c8",
"shortAddress": "01",
"attribute": [],
"creator": "5da994550dc418001b95d36f",
"__v": 1,
"lineTime": "2023-01-18T12:31:20.587Z",
"depart": "60dd29bbef67b7001dd5559f",
"id": "601372a7bce064001cdf94f9"
},
"creator": {
"_id": "5da994550dc418001b95d36f",
"trueName": "郑元杰",
"username": "13806650937",
"mqttUsername": "13806650937"
},
"createdAt": "2021-01-29T02:28:51.198Z",
"updatedAt": "2023-01-18T17:02:53.649Z",
"__v": 0,
"valueAt": "2023-01-18T17:02:53.422Z",
"uiModel": {
"_id": "6094adcf98d4c0001b0c3689",
"name": "空开控制-单开关",
"code": "Kaiguanpanel-rs485",
"image": "https://res.25soft.com/api/uploads/60a38437f4e9cf0006487c44/Kaiguan.png",
"json": "https://res.25soft.com/api/uploads/60a3843cf4e9cf0006487c45/Kaiguan.json",
"js": "https://res.25soft.com/api/uploads/61d54273b75c08001b113281/Kaiguan.js",
"createdAt": "2021-05-07T03:02:39.165Z",
"updatedAt": "2022-05-26T10:04:53.137Z",
"__v": 0,
"edition": "1.0",
"notes": "空开控制-单开关",
"height": "354",
"pcScale": 0.5,
"phScale": 0.45,
"width": "640"
}
}
]
}
}