2.4.1.7.10.1. 查询Config详细列表
请求参数:
字段 | 字段名称 | 字段类型 | 说明 | 是否必传 |
---|---|---|---|---|
page_index | 查询页码 | Integer | 大于 0,如果为空,则默认从第一页显示 | 否 |
page_size | 每页记录数 | Integer | 大于 0,如果为空,则默认为 20 | 否 |
condition | 查询条件 | Json | LIKE模糊搜索条件 | 否 |
start_time | 开始时间 | Datetime | 按创建时间搜索的开始时间和结束时间 | 否 |
end_time | 结束时间 | Datetime | 否 |
condition参数:
格式
举例
返回参数:
字段 | 字段名称 | 字段类型 | 说明 | 是否必传 |
---|---|---|---|---|
code | 返回码 | Integer | 200:成功 500:失败 | 是 |
msg | 提示信息 | String | 是 | |
result | 结果 | Json | 是 |
返回数据举例:
2.4.1.7.10.2. 查询Config指定记录
属性 | 值 |
---|---|
url | /api/config/get |
http方法 | post |
请求参数:
字段 | 字段名称 | 字段类型 | 说明 | 是否必传 |
---|---|---|---|---|
config_id | 适配器配置标识 | String | 是 |
返回参数:
返回示例:
{
"code": 200,
"msg": "查询成功",
"mix_code":130001,
"mix_msg":"",
"mix_ext":"",
"result": {
"page_index": 1,
"page_size": 20,
"total_records": 1,
"data": [
{
"config_name": "空压机配置",
"description": null,
"hardware": null,
"mcu_file": null,
"mcu_version": null,
"remosu_file": null,
"remosu_version": null,
"lua_file": null,
"lua_version": null,
"template": null,
"script": null,
"created": "2018-09-20 22:14:41",
"boss_sync": 0
}
]
}
}
2.4.1.7.10.3. 添加Config
调用接口:
属性 | 值 |
---|---|
url | /api/config/add |
http方法 | post |
Content-Type | application/json或application/x-www-form-urlencoded |
请求参数:
字段 | 字段名称 | 字段类型 | 说明 | 是否必传 |
---|---|---|---|---|
config_name | 适配器配置名称 | String | 是 | |
description | 描述 | Text | 否 | |
firmware | 硬件版本号 | String | 否 | |
mcu_file | mcu文件路径 | String | 否 | |
mcu_version | muc版本号 | String | 否 | |
lua_file | lua程序文件路径 | String | 否 | |
lua_version | lua版本号 | String | 否 | |
template | 模板/样式 | text | 否 | |
script | 脚本 | text | 否 | |
reference | 参考号 | String | 否 |
返回参数:
字段 | 字段名称 | 字段类型 | 说明 | 是否必传 |
---|---|---|---|---|
code | 返回码 | Integer | 200:成功 500:失败 | 是 |
msg | 提示信息 | String | 是 | |
result | 返回结果 | Json | 是 |
2.4.1.7.10.4. 编辑Config
调用接口:
属性 | 值 |
---|---|
url | /api/config/edit |
http方法 | post |
Content-Type | application/json或application/x-www-form-urlencoded |
请求参数:
返回参数:
字段 | 字段名称 | 字段类型 | 说明 | 是否必传 |
---|---|---|---|---|
code | 返回码 | Integer | 200:成功 500:失败 | 是 |
msg | 提示信息 | String | 是 | |
result | 返回结果 | Json | 是 |
返回示例:
{
"code": 200,
"msg": "编辑成功",
"mix_code":130001,
"mix_msg":"",
"mix_ext":"",
"result": []
}
2.4.1.7.10.5. 删除Config
调用接口:
属性 | 值 |
---|---|
url | /api/config/delete |
http方法 | post |
Content-Type | application/json或application/x-www-form-urlencoded |
请求参数:
字段 | 字段名称 | 字段类型 | 说明 | 是否必传 |
---|---|---|---|---|
config_id | 适配器配置标识 | String | 是 |
字段 | 字段名称 | 字段类型 | 说明 | 是否必传 |
---|---|---|---|---|
code | 返回码 | Integer | 200:成功 500:失败 | 是 |
msg | 提示信息 | String | 是 | |
result | 返回结果 | Json | 是 |
返回示例: