新增或修改终端配置-小娇

客户端-新增或修改终端配置

  • API路径:
    /idsp/api/sys/terminalconf/updByClient
  • 请求类型:
    HTTP POST
  • 请求头:
    Content-Type:application/json;charset=UTF-8

  • 请求体:

      json
      {
          "deviceNo": "设备编号",
          "ip": "设备ip,192.168.15.19:58879",
          "mac":"设备mac",
          "paperState":"纸张状态(1、正常 2、即将缺纸  3、已缺纸4、打印机卡纸)",
          "inkboxState":"墨盒状态(1、正常 2、即将缺墨 3、墨量不足)",
          "serviceState":"服务状态(1、正常 2、打印服务异常 3、双目服务异常 4、广角服务异常 5、二维码服务异常 6、身份证服务异常)"
      }
    
  • 响应体:
    ```
    json
    {

      "flag": 1,
      "totalCount": 0,
      "msg": null,
      "data": {
          "orgTypeCn": "鉴定机构",
          "syncTime": 同步时间,毫秒,
          "deviceName": "设备名称1",
          "mac": "MAC",
          "cjsj": "创建时间:2022-01-05 09:39:53",
          "orgType": "1",
          "inkboxStateCn": "正常",
          "scbs": "0",
          "xgrId": "052ac55382b648099fe1de7b42d9c34e",
          "id": "298888977e27e480017e27e480af0000",
          "paperStateCn": "正常",
          "paperState": "纸张状态(1、正常 2、即将缺纸  3、已缺纸4、打印机卡纸)",
          "maintainStateCn": "已维护",
          "deviceStateCn": "在线",
          "inkboxState": "墨盒状态(1、正常 2、即将缺墨 3、墨量不足)",
          "serviceState":"服务状态(1、正常 2、打印服务异常 3、双目服务异常 4、广角服务异常 5、二维码服务异常 6、身份证服务异常)",
          "ip": "IP",
          "deviceNo": "设备编号",
          "installPosition": "安装位置1",
          "maintainState": "是否待维护(0、待维护,1、已维护)",
          "deviceState": "设备状态(1、在线 2、离线)",
          "terminalConfOrgRelList": [
              {
                  "orgName": "机构或者委托单位名称",
                  "terminalConfId": "终端主键ID",
                  "orgType": "使用单位类型(1、鉴定机构 2、委托单位)",
                  "orgCode": "机构或者委托单位代码",
                  "id": "2988888f7e5696f2017e575ac2fc0012"
              }
          ],
          "xgsj": "修改时间:2022-01-05 10:15:52"
      },
      "extraRes": null
    

    }


- 请求体测试数据:
json
{
    "deviceNo": "2021DP0001",
    "ip": "192.168.15.19:58879",
    "mac":"00-01-DC-0H-00-09",
    "paperState":"1",
    "inkboxState":"1"
}

- 响应体测试数据:
json
{
    "flag": 1,
    "totalCount": 0,
    "msg": null,
    "data": 1,
    "extraRes": null
}

```