1. 查询巡检处理记录

安全质量巡检处理记录

注意

  • 如果接口需要提供auth-token,你需要通过轻筑开放平台创建应用来获取appid和secret,然后通过appid和secret来获取接口访问凭证auth-token。
  • 如果需要获取当前用户的使用信息,授权确保你能获取到qzcode,然后通过网页授权接口获取相关信息。

1.1. 1. 基本信息

概况 内容
接口地址 /api/inspect/v2/findProcessLog
请求方法 GET
请求数据类型 URL参数
响应数据类型 JSON

1.2. 2. 请求数据

1.2.1. 请求头(request-header)

请求头除了默认的参数还需要添加如下请求头参数:

字段 描述
auth-token 接口访问凭据,你可以通过平台下发的appid和secret获取凭据

1.2.2. 请求参数(request-parameter)

字段 是否必传 描述
recordId 记录ID
category 操作类型(inspect - 整改/复检记录)

参数请求示例:

http://api.example.com/xxx?key=value

1.3. 3. 响应数据

响应数据中 code, message, data 为默认字段,所有字段如下表所示:

字段 类型 是否必填 描述
code number 返回码,0为正常返回
message string 返回消息
data array 返回内容
recordId string 记录ID
flowStatus number 流程状态(已整改 - 3;复检驳回 - 4;复检通过 - 5)
action string 操作类型(通过 - pass)
questionIndex number 巡检问题序号(从1开始对应第几个巡检情况)
questionStatus string 复检时表示改问题项是否合格(1-合格、2-不合格)
content string 内容
attachment array 附件
name string 文件名
url string 访问地址
measure string 整改措施
emergency string 应急处理措施
time string 处理时间
user array 处理人员
name string 姓名
value string ID
url string 头像
phone string 电话
orgId string 单位ID
orgName string 单位名称
submitterId string 提交人ID
submitterName string 提交人姓名
submitterPhone string 提交人电话
submitterAvatar string 提交人头像
submitTime string 提交时间

响应数据结构如下所示:

{
  "code": 0,
  "message": null,
  "data": [
    {
      "recordId": "46018b2086cb4ec88cc36944225db17b",
      "flowStatus": 3,
      "action": "pass",
      "questionIndex": 1,
      "questionStatus": "0",
      "content": "第一次整改内容",
      "attachment": [
        {
          "name": "tmp.png",
          "url": "https://qingzhu-test.xxx.com/cef29731-3148-4be6-acb2-5a51df8ea623.png"
        },
        {
          "name": "1111.jpg",
          "url": "https://qingzhu-test.xxx.com/d3487dfb-d2ed-4315-8ec7-a1441a1b50c3.jpg"
        }
      ],
      "measure": "整改措施整改措施整改措施整改措施",
      "emergency": "应急处理措施应急处理措施应急处理措施应急处理措施",
      "time": "2023-11-03 16:46",
      "user": [
        {
          "name": "xxx",
          "value": "7564eea0642c450f96d4d2eea57e6d2e",
          "url": null,
          "phone": "123456",
          "orgId": "",
          "orgName": ""
        }
      ],
      "submitterId": "7564eea0642c450f96d4d2eea57e6d2e",
      "submitterName": "xxx",
      "submitterPhone": "123456",
      "submitterAvatar": "",
      "submitTime": "2023-11-03 16:47"
    },
    {
      "recordId": "46018b2086cb4ec88cc36944225db17b",
      "flowStatus": 3,
      "action": "pass",
      "questionIndex": 1,
      "questionStatus": "0",
      "content": "第二次整改整改内容",
      "attachment": [
        {
          "name": "tmp.png",
          "url": "https://qingzhu-test.xxx.com/09224c31-e6e2-4d5c-89aa-31b32a2d1624.png"
        }
      ],
      "measure": "整改措施整改措施整改措施整改措施整改措施",
      "emergency": "应急处理措施应急处理措施应急处理措施",
      "time": "2023-11-03 16:48",
      "user": [
        {
          "name": "xxx",
          "value": "7564eea0642c450f96d4d2eea57e6d2e",
          "url": null,
          "phone": "123456",
          "orgId": "",
          "orgName": ""
        }
      ],
      "submitterId": "7564eea0642c450f96d4d2eea57e6d2e",
      "submitterName": "xxx",
      "submitterPhone": "123456",
      "submitterAvatar": "",
      "submitTime": "2023-11-03 16:48"
    },
    {
      "recordId": "46018b2086cb4ec88cc36944225db17b",
      "flowStatus": 5,
      "action": "pass",
      "questionIndex": 1,
      "questionStatus": "1",
      "content": "复检内容复检内容复检内容复检内容复检内容",
      "attachment": [
        {
          "name": "tmp.png",
          "url": "https://qingzhu-test.xxx.com/b1fe280e-3f34-4831-97bb-10cc0c1976a1.png"
        }
      ],
      "measure": null,
      "emergency": null,
      "time": "2023-11-03 16:48",
      "user": [
        {
          "name": "xxx",
          "value": "7564eea0642c450f96d4d2eea57e6d2e",
          "url": null,
          "phone": "123456",
          "orgId": "",
          "orgName": ""
        }
      ],
      "submitterId": "7564eea0642c450f96d4d2eea57e6d2e",
      "submitterName": "xxx",
      "submitterPhone": "123456",
      "submitterAvatar": "",
      "submitTime": "2023-11-03 16:49"
    }
  ]
}

1.4. 4. 错误码

当返回数据中的 code 不为 0 时,为错误返回。其中errCode为详细的错误码。

© All Rights Reserved            updated 2024-08-23 10:14:55

results matching ""

    No results matching ""