/admin/compliance/gdpr/right-to-erasure
创建一个新的数据删除权请求(GDPR第17条)
Request Body
Schema: dto.CreateErasureRequest
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
data_categories |
array of string |
Yes | ['["profile"', '"history"]'] |
数据类别 | |
user_id |
string |
Yes | usr_abc123 |
用户ID | |
confirmation_code |
string |
No | DELETE-CONFIRM-123 |
确认码 | |
reason |
string |
No | 账户不再使用 |
删除原因 |
Responses
| Status | Description | Schema |
|---|---|---|
| 201 | created | dto.ErasureItemResponse |
| 400 | bad request | dto.ErrorResponse |
Referenced Schemas
dto.ErasureItem
数据删除请求记录
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
completed_at |
string |
No | 2026-04-20T14:00:00Z |
完成时间 | |
created_at |
string |
No | 2026-04-15T10:00:00Z |
创建时间 | |
data_categories |
array of string |
No | ['["profile"', '"history"]'] |
数据类别 | |
id |
string |
No | erasure_001 |
删除请求ID | |
reason |
string |
No | 账户不再使用 |
删除原因 | |
status |
string |
No | processing |
状态 | |
user_id |
string |
No | usr_abc123 |
用户ID |
dto.ErasureItemResponse
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
code |
integer |
No | |||
data |
dto.ErasureItem |
No | |||
message |
string |
No | |||
timestamp |
string |
No |
dto.ErrorResponse
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
code |
integer |
No | 400 |
||
message |
string |
No | invalid request |