/internal/communication/erase-user-data
根据用户ID和租户ID擦除用户的通信数据:软删除通信日志(保留审计追踪),硬删除推送令牌(数据最小化)。用于GDPR第17条(被遗忘权)的合规执行。内部接口,使用InternalAPIKeyAuth认证。参考:ePrivacy Directive 2002/58/EC、CAN-SPAM Act。
请求体
Schema: service-communication/internal/handler/dto.EraseUserDataRequest
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
user_id |
string |
是 | usr_abc123 |
响应
| 状态 | 描述 | Schema |
|---|---|---|
| 200 | 擦除成功 | service-communication/internal/handler/dto.OKResponse |
| 400 | 请求参数错误 | dto.SimpleResponse |
| 500 | 服务内部错误 | dto.SimpleResponse |
引用的 Schema
dto.SimpleResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
code |
integer |
否 | |||
message |
string |
否 | |||
timestamp |
string |
否 |
service-communication/internal/handler/dto.OKResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
code |
integer |
否 | 0 |
||
message |
string |
否 | success |