获取点位列表
POST
/api/iot/item
IOT
责任人:未设置
请求参数
Header 参数
Content-Type
string
必需
Body 参数application/x-www-form-urlencoded
categoryName
string
网关名称
categoryId
string
分类id
code
string
点位编码
name
string
点位名称
gatewayCode
string
网关编码符号
返回响应
🟢200成 功
application/json
Body
result
object
必需
total
enum<number>
必需
枚举值:
示例值:
73
list
array [object {51}]
必需
pageNum
enum<number>
必需
枚举值:
示例值:
1
pageSize
enum<number>
必需
枚举值:
示例值:
15
size
enum<number>
必需
枚举值:
示例值:
15
startRow
enum<number>
必需
枚举值:
示例值:
1
endRow
enum<number>
必需
枚举值:
示例值:
15
pages
enum<number>
必需
枚举值:
示例值:
5
prePage
enum<number>
必需
枚举值:
示例值:
0
nextPage
enum<number>
必需
枚举值:
示例值:
2
isFirstPage
enum<boolean>
必需
枚举值:
示例值:
true
isLastPage
enum<boolean>
必需
枚举值:
示例值:
false
hasPreviousPage
enum<boolean>
必需
枚举值:
示例值:
false
hasNextPage
enum<boolean>
必需
枚举值:
示例值:
true
navigatePages
enum<number>
必需
枚举值:
示例值:
8
navigatepageNums
array[string]
必需
枚举值:
示例值:
[1,2,3,4,5]
navigateFirstPage
enum<number>
必需
枚举值:
示例值:
1
navigateLastPage
enum<number>
必需
枚举值:
示例值:
5
msg
enum<string>
必需
枚举值:
示例值:
查询列表成功
code
enum<number>
必需
枚举值:
示例值:
200
status
enum<number>
必需
枚举值:
示例值:
200
示例
{
"result": {
"total": "73",
"list": [
{
"id": "394359",
"tags": [
"string"
],
"code": "union_17fb11643c1@apiceshiqiye",
"itemCode": "union_17fb11643c1@apiceshiqiye",
"deviceName": "电机当前运行时长",
"name": "电机当前运行时长",
"gatewayId": "102",
"accessMode": "UNION",
"dataPattern": "10",
"unit": "s",
"max": "100",
"min": "0",
"resolve": "5",
"description": "string",
"design": "string",
"containerId": "apiceshiqiye",
"collectId": "0",
"type": "运行状态",
"createAt": "2022-03-22 18:05:19",
"categoryId": "102",
"categoryName": "指定采集离线",
"facilityId": "0",
"displayType": "line",
"facilityName": "string",
"dataType": "double",
"itemIds": [
"string"
],
"alertProperties": [
{
"id": "532",
"type": "低限",
"chara": "<=",
"value": "string",
"bufferValue": "0",
"sensorId": "394359",
"containerId": "apiceshiqiye",
"code": "union_17fb11643c1@apiceshiqiye",
"owner": "admin",
"sensor_id": "394359",
"container_id": "apiceshiqiye"
}
],
"online": "1",
"centerTrans": "true",
"isUnited": "true",
"dataSource": "cjxt_10.0.16.112_3306_wh_test_02",
"dataSourceList": [
{
"id": "394193",
"code": "cjxt_10.0.16.112_3306_wh_test_02",
"name": "电机工作效率1",
"gatewayName": "测试点位稳点上传",
"gatewayId": "217",
"gatewayCode": "apiceshiqiye20220321152852",
"accessMode": "INTERMEDIATE_DATABASE",
"dataPattern": "10",
"unit": "string",
"max": "100",
"min": "0",
"resolve": "5",
"description": "string",
"design": "string",
"containerId": "apiceshiqiye",
"collectId": "0",
"type": "string",
"createAt": "2022-03-21 15:32:53",
"categoryId": "102",
"categoryName": "指定采集离线",
"facilityId": "0",
"displayType": "line",
"facilityName": "string",
"dataType": "double",
"online": "1",
"centerTrans": "true",
"isUnited": "false",
"dataSource": "string",
"alarmLevel": "4",
"defaultValue": "string",
"pointRuleGroups": "[]",
"ctrType": "采集类",
"ctrAddress": "采集类",
"collect_id": "0",
"display_type": "line",
"gateway_id": "217",
"alarm_level": "4",
"category_id": "102",
"data_type": "double",
"access_mode": "INTERMEDIATE_DATABASE",
"facility_id": "0",
"create_at": "2022-03-21 15:32:53",
"data_pattern": "10",
"facility_name": "string"
}
],
"isCheck": "false",
"alarmLevel": "四级",
"exprType": "3",
"defaultValue": "string",
"pointRuleGroups": "[]",
"ctrType": "采集类",
"collect_id": "0",
"display_type": "line",
"gateway_id": "102",
"alarm_level": "四级",
"category_id": "102",
"device_name": "电机当前运行时长",
"data_type": "double",
"access_mode": "UNION",
"facility_id": "0",
"create_at": "2022-03-22 18:05:19",
"item_code": "union_17fb11643c1@apiceshiqiye",
"data_pattern": "10",
"facility_name": "string"
}
],
"pageNum": "1",
"pageSize": "15",
"size": "15",
"startRow": "1",
"endRow": "15",
"pages": "5",
"prePage": "0",
"nextPage": "2",
"isFirstPage": "true",
"isLastPage": "false",
"hasPreviousPage": "false",
"hasNextPage": "true",
"navigatePages": "8",
"navigatepageNums": "[1,2,3,4,5]",
"navigateFirstPage": "1",
"navigateLastPage": "5"
},
"msg": "查询列表成功",
"code": "200",
"status": "200"
}
修改于 2023-04-20 01:27:55