1.URL
http://124.223.60.234:8080/system/asset/terminaltype/queryTerminalTypeList
2.请求参数
2.1请求头
在Headers里面增加token:对应登录验证成功后,data里面对应的tokenId
2.2.参数示例
{
"id":"5E44D7342FAC43DF8169E6DF87D3C6AF"
}
2.3.参数说明
字段 | 类型 | 说明 | 是否必须 |
---|---|---|---|
id | String | 公司类型唯一标识 | Y |
3.接口应答
3.1.返回示例
{
"code": 200,
"message": "Operation succeeded",
"data": [
{
"terminalTypeId": 100,
"typeName": "AOVX-V",
"offlineTime": 600,
"modelId": 1,
"protocolType": 808,
"status": 1,
"functionKeys": "",
"terminalTypeFuncList": [
{
"functionKey": 1,
"name": "{\"0\":\"Oil circuit\",\"1\":\"油路控制\"}"
},
{
"functionKey": 2,
"name": "{\"0\":\"Power switch\",\"1\":\"电源控制\"}"
},
{
"functionKey": 3,
"name": "{\"0\":\"Restart\",\"1\":\"远程重启\"}"
},
{
"functionKey": 4,
"name": "{\"0\":\"Command pass-through\",\"1\":\"指令透传\"}"
}
],
"gateway": "124.223.60.234:6608",
"descUrl": null
},
{
"terminalTypeId": 101,
"typeName": "AOVX-G",
"offlineTime": 86400,
"modelId": 2,
"protocolType": 808,
"status": 1,
"functionKeys": "[3,4]",
"terminalTypeFuncList": [
{
"functionKey": 3,
"name": "{\"0\":\"Restart\",\"1\":\"远程重启\"}"
},
{
"functionKey": 4,
"name": "{\"0\":\"Command pass-through\",\"1\":\"指令透传\"}"
}
],
"gateway": "124.223.60.234:6608",
"descUrl": null
},
{
"terminalTypeId": 102,
"typeName": "AOVX-A",
"offlineTime": 86400,
"modelId": 3,
"protocolType": 808,
"status": 1,
"functionKeys": "[3,4]",
"terminalTypeFuncList": [
{
"functionKey": 3,
"name": "{\"0\":\"Restart\",\"1\":\"远程重启\"}"
},
{
"functionKey": 4,
"name": "{\"0\":\"Command pass-through\",\"1\":\"指令透传\"}"
}
],
"gateway": "124.223.60.234:6608",
"descUrl": null
},
{
"terminalTypeId": 103,
"typeName": "Apollo",
"offlineTime": 86400,
"modelId": 4,
"protocolType": 808,
"status": 1,
"functionKeys": "[8,9,10,11]",
"terminalTypeFuncList": [
{
"functionKey": 8,
"name": "{\"0\":\"Start up\",\"1\":\"启动\"}"
},
{
"functionKey": 9,
"name": "{\"0\":\"Shutdown\",\"1\":\"熄火\"}"
},
{
"functionKey": 10,
"name": "{\"0\":\"Defences\",\"1\":\"设防\"}"
},
{
"functionKey": 11,
"name": "{\"0\":\"Disarm\",\"1\":\"撤防\"}"
}
],
"gateway": "124.223.60.234:6608",
"descUrl": null
},
{
"terminalTypeId": 200,
"typeName": "LU207",
"offlineTime": 600,
"modelId": 5,
"protocolType": 200,
"status": 1,
"functionKeys": "[6,7]",
"terminalTypeFuncList": [
{
"functionKey": 6,
"name": "{\"0\":\"Unlock\",\"1\":\"开锁\"}"
},
{
"functionKey": 7,
"name": "{\"0\":\"Unlock password\",\"1\":\"开锁密码\"}"
}
],
"gateway": "124.223.60.234:6609",
"descUrl": null
},
{
"terminalTypeId": 808,
"typeName": "JT/T808-2013",
"offlineTime": 600,
"modelId": 1,
"protocolType": 808,
"status": 1,
"functionKeys": "",
"terminalTypeFuncList": [],
"gateway": "124.223.60.234:6608",
"descUrl": null
},
{
"terminalTypeId": 1808,
"typeName": "JT/T808-2019",
"offlineTime": 600,
"modelId": 1,
"protocolType": 808,
"status": 1,
"functionKeys": "",
"terminalTypeFuncList": [],
"gateway": "124.223.60.234:6608",
"descUrl": null
}
]
}
3.2.返回结果说明
字段 | 类型 | 说明 |
---|---|---|
code | int | 返回状态 |
message | String | 返回结果描述 |
data | object | 返回结果体 |
data说明
字段 | 类型 | 说明 |
---|---|---|
terminalTypeId | String | 终端类型ID |
typeName | String | 终端类型名称 |
offlineTime | int | 离线判断时长 |
modelId | int | 模型ID |
protocolType | int | 协议类型ID |
status | int | 终端类型状态(0:禁用;1:启用) |
functionKeys | String | 终端类型对应的功能集合 |
terminalTypeFuncList | List | 类型对应的快捷字典键集合 |
gateway | String | 此类型终端注册的网关地址 |
terminalTypeFuncList说明
字段 | 类型 | 说明 |
---|---|---|
functionKey | int | 快捷键Key |
name | String | 快捷键名称(0:英文;1:中文) |
4.请求示例
作者:admin 创建时间:2023-04-16 19:49
最后编辑:admin 更新时间:2025-04-23 17:26
最后编辑:admin 更新时间:2025-04-23 17:26