/internal/notification/notifications/erase-user
根据compliance-service erasure流程,擦除指定用户的所有通知数据。内部API,受InternalAPIKeyMulti保护。
请求参数
| 名称 | 位置 | 类型 | 必填 | 默认值 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|---|---|
X-Tenant-ID |
header |
string |
是 | 租户ID |
请求体
Schema: service-notification/internal/handler/dto.EraseUserNotificationsRequest
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
user_id |
string |
是 |
响应
| 状态 | 描述 | Schema |
|---|---|---|
| 200 | 擦除成功 | service-core/base/dto.SimpleResponse |
| 400 | 请求参数无效 | service-core/base/dto.SimpleResponse |
| 401 | 未提供有效的X-API-Key | service-core/base/dto.SimpleResponse |
| 500 | 服务内部错误 | service-core/base/dto.SimpleResponse |
引用的 Schema
service-core/base/dto.SimpleResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
code |
integer |
否 | |||
message |
string |
否 | |||
timestamp |
string |
否 |