接入方式下拉菜单
开发中社区版环境
GET
/api/v1/dict/protocol/servicedevice_type 1 直连设备 2 网关设备 3 子设备
请求参数
Query 参数
language_code
string
可选
示例值:
zh
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
message
string
必需
data
array [object {3}]
必需
device_type
string
必需
dict_value
string
必需
translation
string
必需
示例
{
"code": 200,
"message": "Dict get successfully",
"data": [
{
"device_type": "1",
"dict_value": "MQTT",
"translation": "MQTT协议"
},
{
"device_type": "1",
"dict_value": "xxxx",
"translation": "zzz"
},
{
"device_type": "1",
"dict_value": "Mindjoy-WM",
"translation": "Mindjoy喷淋灌溉一体机"
},
{
"device_type": "2",
"dict_value": "MQTT",
"translation": "MQTT协议(网关)"
},
{
"device_type": "2",
"dict_value": "MODBUS_TCP",
"translation": "MODBUS-TCP"
},
{
"device_type": "2",
"dict_value": "MODBUS_RTU",
"translation": "MODBUS协议插件(RTU)"
},
{
"device_type": "3",
"dict_value": "MQTT",
"translation": "MQTT协议(网关)"
},
{
"device_type": "3",
"dict_value": "MODBUS_TCP",
"translation": "MODBUS-TCP"
},
{
"device_type": "3",
"dict_value": "MODBUS_RTU",
"translation": "MODBUS协议插件(RTU)"
}
]
}
最后修改时间: 7 个月前