安全模块

会昌企业帮接口文档V1.0

总述

1.简介


文档介绍.


2.注意

  • 默认年月日时分秒的日期格式,yyyy-MM-dd HH:mm:ss

3.模板


  • 接口地址
  • 功能说明
  • 请求参数
  • 请求示例
  • 响应参数
  • 响应示例

4.统一返回结果集格式

data字段中为实际返回的数据内容

{
    "code": 200,
    "msg": "成功",
    "data": { }
}

5.统一返回结果错误码

状态码 含义
200 成功
500 失败
401 未授权

6.用户授权凭证

用户授权token分为两种,一种是accessToken,用户登录成功后生成,在每次的接口请求中需在head中携带accessToken,另一种为refreshToken,每次请求接口刷新产生新的refreshToken并返回写于head中。

7.分页统一返回数据格式

{
    "success": true,
    "code": 200,
    "message": "成功",
    "data": {
         "total": 1,  
         "size": 10,
         "current": 1,
         "pages": 1
        }
    }
}
参数名 含义
total 总记录数
size 每页记录数(默认10条)
current 当前页码(从1开始)
pages 总页数

会昌企业帮接口

8. 安全模块

8.1 风险监控列表(分页)

API地址

接口地址 请求方式
/api/app/riskMonitoring/page POST

功能说明

  • 风险监控列表(分页)

请求参数

参数名 含义 是否必填

请求示例



响应参数

名称 含义
count 总记录数
company 企业
companyId 企业ID
type 监测类型
unit 单位
curValue 当前值
limitValue 报警限值
detectorName 探测器名称

响应示例

{
    "code": 200,
    "msg": null,
    "count": 8,
    "data": [
        {
            "id": 1,
            "company": "江西九二盐业有限责任公司",
            "companyId": 3,
            "type": "浓度",
            "unit": "ppm",
            "curValue": "0.566",
            "limitValue": "0.00000~10.00000",
            "detectorName": "液氯包装厂房操作室内",
            "deleted": 0,
            "createTime": "2021/11/22 13:58:02",
            "updateTime": "2021/11/22 13:58:02"
        },
        {
            "id": 2,
            "company": "赣州石磊新能源科技有限公司",
            "companyId": 4,
            "type": "压力",
            "unit": "Mpa",
            "curValue": "1.566",
            "limitValue": null,
            "detectorName": "PT_D01A(HF储罐D01A压力)",
            "deleted": 0,
            "createTime": "2021/11/22 13:58:02",
            "updateTime": "2021/11/22 13:58:02"
        },
        {
            "id": 3,
            "company": "江西省汇凯化工有限责任公司",
            "companyId": 17,
            "type": "重量",
            "unit": "Kg",
            "curValue": "120.987",
            "limitValue": "0.00000~17000.00000",
            "detectorName": null,
            "deleted": 0,
            "createTime": "2021/11/22 13:58:02",
            "updateTime": "2021/11/22 13:58:02"
        },
        {
            "id": 6,
            "company": "江西中氟化学材料科技股份有限公司",
            "companyId": 18,
            "type": "浓度",
            "unit": "ppm",
            "curValue": "",
            "limitValue": "",
            "detectorName": "GT-7104氟化氢气体检测报警器",
            "deleted": 0,
            "createTime": "2021/11/30 09:41:34",
            "updateTime": "2021/11/30 09:41:34"
        },
        {
            "id": 7,
            "company": "江西南氟化工有限公司",
            "companyId": 19,
            "type": "压力",
            "unit": "Mpa",
            "curValue": "",
            "limitValue": "",
            "detectorName": "3#氟化氢计量槽压力",
            "deleted": 0,
            "createTime": "2021/11/30 11:22:44",
            "updateTime": "2021/11/30 11:22:44"
        },
        {
            "id": 8,
            "company": "江西石磊氟材料有限责任公司",
            "companyId": 14,
            "type": "液位",
            "unit": "m",
            "curValue": "",
            "limitValue": "",
            "detectorName": "LT_D01B1(HF储罐D01B液位)",
            "deleted": 0,
            "createTime": "2021/11/30 11:23:07",
            "updateTime": "2021/11/30 11:23:07"
        },
        {
            "id": 9,
            "company": "江西石磊氟化工有限责任公司",
            "companyId": 13,
            "type": "液位",
            "unit": "t",
            "curValue": "21.31958",
            "limitValue": "0.00000~110.00000",
            "detectorName": "AHF成品槽I称重",
            "deleted": 0,
            "createTime": "2021/11/30 11:23:48",
            "updateTime": "2021/11/30 11:23:48"
        },
        {
            "id": 10,
            "company": "赣州石磊稀土材料有限公司",
            "companyId": 15,
            "type": "重量",
            "unit": "Kg",
            "curValue": "",
            "limitValue": "",
            "detectorName": "HF粗品槽重量",
            "deleted": 0,
            "createTime": "2021/11/30 11:24:08",
            "updateTime": "2021/11/30 11:24:08"
        }
    ]
}