2.4.1.7.10.1. 查询Config详细列表

    请求参数:

    字段字段名称字段类型说明是否必传
    page_index查询页码Integer大于 0,如果为空,则默认从第一页显示
    page_size每页记录数Integer大于 0,如果为空,则默认为 20
    condition查询条件JsonLIKE模糊搜索条件
    start_time开始时间Datetime按创建时间搜索的开始时间和结束时间
    end_time结束时间Datetime

    condition参数:

    格式

    举例

    返回参数:

    字段字段名称字段类型说明是否必传
    code返回码Integer200:成功 500:失败
    msg提示信息String
    result结果Json

    返回数据举例:

    2.4.1.7.10.2. 查询Config指定记录

    属性
    url/api/config/get
    http方法post

    请求参数:

    字段字段名称字段类型说明是否必传
    config_id适配器配置标识String

    返回参数:

    返回示例:

    1. {
    2. "code": 200,
    3. "msg": "查询成功",
    4. "mix_code":130001,
    5. "mix_msg":"",
    6. "mix_ext":"",
    7. "result": {
    8. "page_index": 1,
    9. "page_size": 20,
    10. "total_records": 1,
    11. "data": [
    12. {
    13. "config_name": "空压机配置",
    14. "description": null,
    15. "hardware": null,
    16. "mcu_file": null,
    17. "mcu_version": null,
    18. "remosu_file": null,
    19. "remosu_version": null,
    20. "lua_file": null,
    21. "lua_version": null,
    22. "template": null,
    23. "script": null,
    24. "created": "2018-09-20 22:14:41",
    25. "boss_sync": 0
    26. }
    27. ]
    28. }
    29. }

    2.4.1.7.10.3. 添加Config

    调用接口:

    属性
    url/api/config/add
    http方法post
    Content-Typeapplication/json或application/x-www-form-urlencoded

    请求参数:

    字段字段名称字段类型说明是否必传
    config_name适配器配置名称String
    description描述Text
    firmware硬件版本号String
    mcu_filemcu文件路径String
    mcu_versionmuc版本号String
    lua_filelua程序文件路径String
    lua_versionlua版本号String
    template模板/样式text
    script脚本text
    reference参考号String

    返回参数:

    字段字段名称字段类型说明是否必传
    code返回码Integer200:成功 500:失败
    msg提示信息String
    result返回结果Json

    2.4.1.7.10.4. 编辑Config

    调用接口:

    属性
    url/api/config/edit
    http方法post
    Content-Typeapplication/json或application/x-www-form-urlencoded

    请求参数:

    返回参数:

    字段字段名称字段类型说明是否必传
    code返回码Integer200:成功 500:失败
    msg提示信息String
    result返回结果Json

    返回示例:

    1. {
    2. "code": 200,
    3. "msg": "编辑成功",
    4. "mix_code":130001,
    5. "mix_msg":"",
    6. "mix_ext":"",
    7. "result": []
    8. }

    2.4.1.7.10.5. 删除Config

    调用接口:

    属性
    url/api/config/delete
    http方法post
    Content-Typeapplication/json或application/x-www-form-urlencoded

    请求参数:

    字段字段名称字段类型说明是否必传
    config_id适配器配置标识String
    字段字段名称字段类型说明是否必传
    code返回码Integer200:成功 500:失败
    msg提示信息String
    result返回结果Json

    返回示例: