/admin/compliance/breach-notifications/{breach_notification_id}
更新数据泄露通知的处理状态
请求参数
| 名称 | 位置 | 类型 | 必填 | 默认值 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|---|---|
breach_notification_id |
path |
string |
是 | notification ID |
请求体
Schema: service-compliance/internal/handler/dto.UpdateBreachNotificationRequest
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
affected_users |
integer |
否 | 500 |
||
description |
string |
否 | Updated breach details |
||
reported_to_dpa |
boolean |
否 | True |
||
severity |
string |
否 | critical |
||
status |
string |
否 | reported |
||
title |
string |
否 | Updated Breach Notification |
响应
| 状态 | 描述 | Schema |
|---|---|---|
| 200 | success | service-compliance/internal/handler/dto.BreachNotificationItemResponse |
| 400 | bad request | service-compliance/internal/handler/dto.ErrorResponse |
引用的 Schema
service-compliance/internal/handler/dto.BreachNotificationItemResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
code |
integer |
否 | |||
data |
service-compliance/internal/handler/dto.BreachNotificationResponse |
否 | |||
message |
string |
否 | |||
timestamp |
string |
否 |
service-compliance/internal/handler/dto.BreachNotificationResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
affected_users |
integer |
否 | 1000 |
||
created_at |
string |
否 | 2026-05-01T10:00:00Z |
||
description |
string |
否 | Unauthorized database access detected |
||
id |
string |
否 | 01JQ... |
||
reported_at |
string |
否 | 2026-05-01T14:00:00Z |
||
reported_to_dpa |
boolean |
否 | True |
||
severity |
string |
否 | high |
||
status |
string |
否 | reported |
||
title |
string |
否 | Database Breach Incident |
service-compliance/internal/handler/dto.ErrorResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
code |
integer |
否 | 400 |
||
message |
string |
否 | invalid request |