1.URL
xxxxxxxxxxxxxxx/system/asset/configure/queryEventEnum
其中xxxxxxxxxxxxxxx为节点URL(详情参考:对接说明中4.服务器节点说明)
(上海节点)http://124.223.60.234:8080/system/asset/configure/queryEventEnum
(美国节点)https://cloud.aovx.com/prod/system/asset/configure/queryEventEnum
2.请求参数
2.1请求头
在Headers里面增加token:对应登录验证成功后,data里面对应的tokenId
2.2.参数示例
{
"id":"F940B79790004404AAC277418FC71C5E"
}
2.3.参数说明
字段 | 类型 | 说明 | 是否必须 |
---|---|---|---|
id | String | 组织唯一标识 | Y |
3.接口应答
3.1.返回示例
{
"code": 200,
"message": "Operation succeeded",
"data": [
{
"id": 0,
"name": "{\"0\":\"OTA Start\",\"1\":\"OTA开始\"}",
"index": 0,
"status": 1,
"systemPush": 1,
"appPush": 1
},
{
"id": 1,
"name": "{\"0\":\"OTA Succeed\",\"1\":\"OTA成功\"}",
"index": 0,
"status": 1,
"systemPush": 1,
"appPush": 1
},
{
"id": 2,
"name": "{\"0\":\"OTA Failed\",\"1\":\"OTA失败\"}",
"index": 0,
"status": 1,
"systemPush": 1,
"appPush": 1
},
{
"id": 3,
"name": "{\"0\":\"Open Door\",\"1\":\"开门\"}",
"index": 0,
"status": 1,
"systemPush": 1,
"appPush": 1
},
{
"id": 4,
"name": "{\"0\":\"Close Door\",\"1\":\"关门\"}",
"index": 0,
"status": 1,
"systemPush": 1,
"appPush": 1
},
{
"id": 5,
"name": "{\"0\":\"Open Box\",\"1\":\"开箱\"}",
"index": 0,
"status": 1,
"systemPush": 1,
"appPush": 1
},
{
"id": 6,
"name": "{\"0\":\"Close Box\",\"1\":\"关箱\"}",
"index": 0,
"status": 1,
"systemPush": 1,
"appPush": 1
},
{
"id": 7,
"name": "{\"0\":\"Unlock\",\"1\":\"开锁\"}",
"index": 0,
"status": 1,
"systemPush": 1,
"appPush": 1
},
{
"id": 8,
"name": "{\"0\":\"Lock\",\"1\":\"上锁\"}",
"index": 0,
"status": 1,
"systemPush": 1,
"appPush": 1
}
]
}
3.2.返回结果说明
字段 | 类型 | 说明 |
---|---|---|
code | int | 返回状态 |
message | String | 返回结果描述 |
data | object | 返回结果体 |
data说明
字段 | 类型 | 说明 |
---|---|---|
id | int | 事件类型Id |
name | String | 事件类型名称(0:英文;1:中文) |
index | int | 事件类型排序索引 |
status | int | 事件类型开启状态(1:启用;0:禁用),被禁用的则不会在事件报告对应的事件类型选择栏中体现 |
systemPush | int | 系统提醒(1:启用;0:禁用) |
appPush | int | APP推送(1:启用;0:禁用) |
作者:admin 创建时间:2023-04-24 16:30
最后编辑:admin 更新时间:2025-04-26 15:43
最后编辑:admin 更新时间:2025-04-26 15:43