safety-eval-service/docs/openapi/监管端-风险预警中心.openapi.yaml

307 lines
8.8 KiB
YAML
Raw Normal View History

2026-07-14 10:53:54 +08:00
openapi: 3.0.3
info:
title: 监管端-风险预警中心 API
description: |
重庆市安全评价服务平台 - 监管端「风险预警中心」页面接口。
- 统一前缀:`/safetyEval/regulator/risk-center`
- 当前为 Mock 实现,数据存于 Controller 内存
- 成功响应 `code = "0"`
**Apifox 导入方式**:项目设置 → 导入数据 → 选择本文件OpenAPI/Swagger 格式)
version: 1.0.0
contact:
name: safety-eval-service
servers:
- url: http://localhost:8095
description: 本地开发
- url: http://192.168.20.100:30140
description: 测试网关100
tags:
- name: 监管端-风险预警中心
description: 风险预警中心页面相关接口
paths:
/safetyEval/regulator/risk-center/overview:
get:
tags:
- 监管端-风险预警中心
summary: 页面概览
2026-07-16 11:13:53 +08:00
description: 加载统计卡片(资质预警、项目预警、待机构反馈、今日闭环)
2026-07-14 10:53:54 +08:00
operationId: regulatorRiskOverview
responses:
'200':
description: 成功
content:
application/json:
schema:
$ref: '#/components/schemas/SingleResponseRegulatorRiskOverviewCO'
example:
success: true
code: "0"
data:
stats:
2026-07-16 11:13:53 +08:00
- label: 资质预警
value: "6"
hint: 条件保持、人员比例、属地材料
- label: 项目预警
value: "7"
hint: 进度、人员、告知、勘查、质控
- label: 待机构反馈
2026-07-14 10:53:54 +08:00
value: "4"
2026-07-16 11:13:53 +08:00
hint: 整改说明或证明材料
- label: 今日闭环
value: "5"
hint: 监管复核已完成
2026-07-14 10:53:54 +08:00
/safetyEval/regulator/risk-center/page:
get:
tags:
- 监管端-风险预警中心
summary: 分页查询预警消息
description: |
2026-07-16 11:13:53 +08:00
风险预警消息列表分页查询,支持关键词与各下拉条件筛选。
下拉选项:
- 预警大类:`资质预警` / `项目预警`
- 预警子类:资质条件保持异常 / 人员比例异常 / 属地材料待核验 / 项目启动超期 / 关键节点超期 / 项目人员异常 / 从业告知异常 / 现场勘查异常 / 过程控制/归档异常
- 处理阶段:`未处理` / `已发机构` / `待复核` / `已闭环`
2026-07-14 10:53:54 +08:00
operationId: regulatorRiskPage
parameters:
- name: keyword
in: query
2026-07-16 11:13:53 +08:00
description: 关键词(机构/项目/人员/预警编号)
schema:
type: string
- name: type
in: query
description: 预警大类
2026-07-14 10:53:54 +08:00
schema:
type: string
2026-07-16 11:13:53 +08:00
enum:
- 资质预警
- 项目预警
- name: subtype
2026-07-14 10:53:54 +08:00
in: query
2026-07-16 11:13:53 +08:00
description: 预警子类
2026-07-14 10:53:54 +08:00
schema:
type: string
enum:
2026-07-16 11:13:53 +08:00
- 资质条件保持异常
- 人员比例异常
- 属地材料待核验
- 项目启动超期
- 关键节点超期
- 项目人员异常
- 从业告知异常
- 现场勘查异常
- 过程控制/归档异常
- name: stage
2026-07-14 10:53:54 +08:00
in: query
2026-07-16 11:13:53 +08:00
description: 处理阶段
2026-07-14 10:53:54 +08:00
schema:
type: string
enum:
2026-07-15 14:56:04 +08:00
- 未处理
2026-07-16 11:13:53 +08:00
- 已发机构
- 待复核
- 已闭环
2026-07-14 10:53:54 +08:00
- $ref: '#/components/parameters/currentParam'
- $ref: '#/components/parameters/sizeParam'
responses:
'200':
description: 成功
content:
application/json:
schema:
$ref: '#/components/schemas/PageResponseRegulatorRiskMessageCO'
example:
success: true
code: "0"
2026-07-16 11:13:53 +08:00
total: 7
2026-07-14 10:53:54 +08:00
data:
2026-07-16 11:13:53 +08:00
- id: W-QUAL-2026-012
category: 资质预警
subtype: 资质条件保持异常
riskObject: 重庆渝安风险评估中心
2026-07-14 10:53:54 +08:00
sourceFields:
2026-07-16 11:13:53 +08:00
- 财务材料.固定资产
- 场所核验.建筑面积
- 人员库.专职人数
content: 固定资产、场所面积、档案室面积和专职人员数量不满足保持条件。
stage: 未处理
orgStatus: 未发送
- id: W-PROJ-2026-021
category: 项目预警
subtype: 项目启动超期
riskObject: 华安化工年度安全现状评价
sourceFields:
- 客户信息.评价到期日
- 项目库.新建时间
content: 评价周期已到期 14 天,系统内尚未建立新一轮评价项目。
stage: 未处理
orgStatus: 未发送
2026-07-14 10:53:54 +08:00
components:
parameters:
currentParam:
name: current
in: query
description: 当前页
schema:
type: integer
format: int64
default: 1
minimum: 1
sizeParam:
name: size
in: query
description: 每页条数
schema:
type: integer
format: int64
default: 10
minimum: 1
schemas:
# ---------- 通用响应 ----------
SingleResponseError:
type: object
properties:
success:
type: boolean
example: false
code:
type: string
example: "404"
message:
type: string
errMessage:
type: string
SingleResponseRegulatorRiskOverviewCO:
type: object
properties:
success:
type: boolean
example: true
code:
type: string
example: "0"
message:
type: string
errMessage:
type: string
data:
$ref: '#/components/schemas/RegulatorRiskOverviewCO'
PageResponseRegulatorRiskMessageCO:
type: object
properties:
success:
type: boolean
example: true
code:
type: string
example: "0"
message:
type: string
errMessage:
type: string
total:
type: integer
format: int64
description: 总条数
2026-07-16 11:13:53 +08:00
example: 7
2026-07-14 10:53:54 +08:00
data:
type: array
items:
$ref: '#/components/schemas/RegulatorRiskMessageCO'
# ---------- 业务模型 ----------
RegulatorRiskOverviewCO:
type: object
description: 页面概览
properties:
stats:
type: array
description: 统计卡片
items:
$ref: '#/components/schemas/StatCardCO'
StatCardCO:
type: object
properties:
label:
type: string
description: 标签
2026-07-16 11:13:53 +08:00
example: 资质预警
2026-07-14 10:53:54 +08:00
value:
type: string
description: 数值
2026-07-16 11:13:53 +08:00
example: "6"
2026-07-14 10:53:54 +08:00
hint:
type: string
description: 提示
2026-07-16 11:13:53 +08:00
example: 条件保持、人员比例、属地材料
2026-07-14 10:53:54 +08:00
RegulatorRiskMessageCO:
type: object
2026-07-16 11:13:53 +08:00
description: 风险预警消息
2026-07-14 10:53:54 +08:00
properties:
id:
type: string
description: 预警编号
2026-07-16 11:13:53 +08:00
example: W-QUAL-2026-012
category:
2026-07-14 10:53:54 +08:00
type: string
2026-07-16 11:13:53 +08:00
description: 预警大类
2026-07-14 10:53:54 +08:00
enum:
2026-07-16 11:13:53 +08:00
- 资质预警
- 项目预警
subtype:
2026-07-14 10:53:54 +08:00
type: string
2026-07-16 11:13:53 +08:00
description: 预警子类
2026-07-14 10:53:54 +08:00
enum:
2026-07-16 11:13:53 +08:00
- 资质条件保持异常
- 人员比例异常
- 属地材料待核验
- 项目启动超期
- 关键节点超期
- 项目人员异常
- 从业告知异常
- 现场勘查异常
- 过程控制/归档异常
riskObject:
type: string
description: 风险对象
example: 重庆渝安风险评估中心
2026-07-14 10:53:54 +08:00
sourceFields:
type: array
description: 来源字段
items:
type: string
content:
type: string
2026-07-16 11:13:53 +08:00
description: 触发内容
stage:
2026-07-14 10:53:54 +08:00
type: string
2026-07-16 11:13:53 +08:00
description: 处理阶段
2026-07-14 10:53:54 +08:00
enum:
- 未处理
2026-07-16 11:13:53 +08:00
- 已发机构
- 待复核
2026-07-14 10:53:54 +08:00
- 已闭环
2026-07-16 11:13:53 +08:00
orgStatus:
2026-07-14 10:53:54 +08:00
type: string
2026-07-16 11:13:53 +08:00
description: 机构端状态
2026-07-14 10:53:54 +08:00
enum:
2026-07-16 11:13:53 +08:00
- 未发送
- 机构未读
- 已提交材料
- 处理中
- 已提交说明
- 整改完成