HTTP/HTTPS
请求协议
中科图灵开放平台 / 智慧消防设备管理模块 / 加分-评估结果
加分-评估结果
接口地址:https://api.iot.ink/api/app.php?s=Equipment.Safety_BuildEvaluation_PostevaluationPlusResult.Api
接口描述: 加分-评估结果
接口参数
参数名字 | 类型 | 是否必须 | 默认值 | 其他 | 说明 |
---|---|---|---|---|---|
access_token | 字符串 | 可选 | 访问令牌,仅当开启签名验证时需要传递,生成令牌可使用App.Auth.ApplyToken接口 | ||
buildEvaluationId | 字符串 | 必须 | - | 建筑评估id 示例 | |
vetoItemIds | 字符串 | 必须 | - | 否决项,逗号隔开 示例 | |
apiRequestRaw | 字符串 | 可选 | - | ||
headerInfo | 字符串 | 可选 | - | [] |
返回字段
返回结果 | 类型 | 说明 |
---|---|---|
ret | 整型 | 状态码,200表示成功,4xx表示客户端非法请求,5xx表示服务器错误 |
data | 对象或混合类型 | 业务数据,由各自接口指定,通常为对象 |
data.code | 字符串 | |
data.msg | 字符串 | |
data.data | Array | |
data.data>>assessmentIndexTreeLeftList | 数组 | 一级指标列表 |
data.data>>assessmentIndexTreeLeftList>>id | 字符串 | 一级指标id |
data.data>>assessmentIndexTreeLeftList>>parentId | 字符串 | 父级id |
data.data>>assessmentIndexTreeLeftList>>children | 数组 | |
data.data>>assessmentIndexTreeLeftList>>children>>id | 字符串 | |
data.data>>assessmentIndexTreeLeftList>>children>>parentId | 字符串 | |
data.data>>assessmentIndexTreeLeftList>>children>>children | 数组 | |
data.data>>assessmentIndexTreeLeftList>>children>>name | 字符串 | |
data.data>>assessmentIndexTreeLeftList>>children>>code | 字符串 | |
data.data>>assessmentIndexTreeLeftList>>children>>assessmentType | 字符串 | |
data.data>>assessmentIndexTreeLeftList>>children>>evaluationSystemTemplateId | 字符串 | |
data.data>>assessmentIndexTreeLeftList>>children>>scoreMethod | 字符串 | |
data.data>>assessmentIndexTreeLeftList>>children>>weight | 字符串 | |
data.data>>assessmentIndexTreeLeftList>>children>>score | 字符串 | |
data.data>>assessmentIndexTreeLeftList>>name | 字符串 | 一级指标名称 |
data.data>>assessmentIndexTreeLeftList>>code | 字符串 | code |
data.data>>assessmentIndexTreeLeftList>>assessmentType | 字符串 | |
data.data>>assessmentIndexTreeLeftList>>evaluationSystemTemplateId | 字符串 | |
data.data>>assessmentIndexTreeLeftList>>scoreMethod | 字符串 | |
data.data>>assessmentIndexTreeLeftList>>weight | 字符串 | |
data.data>>assessmentIndexTreeLeftList>>score | 字符串 | 得分 |
data.data>>score | 字符串 | 评估结果得分 |
data.data>>safetyLevel | 字符串 | 安全等级 |
msg | 字符串 | 提示信息,失败时的错误提示 |
在线测试
参数 | 是否必须 | 值 |
---|---|---|
service | 必须 | |
access_token | 可选 | |
buildEvaluationId | 必须 | |
vetoItemIds | 必须 | |
apiRequestRaw | 可选 | |
headerInfo | 可选 |
客户端请求示例
成功响应返回示例:
{
"code": 0,
"msg": null,
"data": {
"assessmentIndexTreeLeftList": [
{
"id": 1,
"parentId": 0,
"children": [
{
"id": 7,
"parentId": 1,
"children": [],
"name": "建筑2222888防火5.1",
"code": "A5.1",
"assessmentType": "0",
"evaluationSystemTemplateId": 1,
"scoreMethod": "0",
"weight": "0.5",
"score": null
},
{
"id": 8,
"parentId": 1,
"children": [],
"name": "建筑防火5.2",
"code": "A5.2",
"assessmentType": "0",
"evaluationSystemTemplateId": 1,
"scoreMethod": "0",
"weight": "0.5",
"score": null
}
],
"name": "建筑防火",
"code": "A",
"assessmentType": "1",
"evaluationSystemTemplateId": 1,
"scoreMethod": "0",
"weight": "0.2",
"score": 95.0
},
{
"id": 2,
"parentId": 0,
"children": [],
"name": "建筑防火1",
"code": "A1",
"assessmentType": "1",
"evaluationSystemTemplateId": 1,
"scoreMethod": "0",
"weight": "0.2",
"score": 100.0
},
{
"id": 3,
"parentId": 0,
"children": [],
"name": "建筑防火2",
"code": "A2",
"assessmentType": "1",
"evaluationSystemTemplateId": 1,
"scoreMethod": "0",
"weight": "0.2",
"score": 100.0
},
{
"id": 5,
"parentId": 0,
"children": [
{
"id": 10,
"parentId": 5,
"children": [],
"name": "建筑防火4.1",
"code": "A4.1",
"assessmentType": "1",
"evaluationSystemTemplateId": 1,
"scoreMethod": "0",
"weight": "0.5",
"score": null
},
{
"id": 11,
"parentId": 5,
"children": [],
"name": "建筑防火4.2",
"code": "A4.2",
"assessmentType": "1",
"evaluationSystemTemplateId": 1,
"scoreMethod": "0",
"weight": "0.5",
"score": null
}
],
"name": "建筑防火4",
"code": "A4",
"assessmentType": "1",
"evaluationSystemTemplateId": 1,
"scoreMethod": "0",
"weight": "0.4",
"score": 100.0
}
],
"score": "99",
"safetyLevel": "优"
}
}
失败响应返回示例:
错误列表
错误状态码 | 错误描述信息 |
---|---|
400 | ret=400,客户端参数错误或非法请求 |
404 | 表示接口服务不存在 |
406 | ret=406,access_token令牌校验不通过 |
407 | ret=407,app_key权限不足,或未知应用 |
408 | ret=408,当前用户禁止使用,或用户未登录 |
409 | ret=409,接口流量不足 |
500 | 表示服务端内部错误 |
本文档生成时间:2024-04-20 23:34:29