GET /admin/compliance/gdpr/consent/{consent_id}
根据ID获取单个用户同意记录的详细信息
合规管理 - 同意 `bearerAuth` application/json
请求参数
| 名称 | 位置 | 类型 | 必填 | 默认值 | 示例 | 约束 | 描述 |
consent_id |
path |
string |
是 |
|
|
|
consent ID |
引用的 Schema
service-compliance/internal/handler/dto.ConsentItem
用户同意记录
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
consent_method |
string |
否 |
explicit |
|
同意方式 |
expired_at |
string |
否 |
2026-04-16T14:00:00Z |
|
过期时间 |
granted |
boolean |
否 |
True |
|
是否同意 |
granted_at |
string |
否 |
2026-04-15T10:00:00Z |
|
同意时间 |
id |
string |
否 |
consent_001 |
|
同意记录ID |
purpose |
string |
否 |
marketing_communication |
|
处理目的 |
service |
string |
否 |
newsletter |
|
服务名称 |
user_id |
string |
否 |
usr_abc123 |
|
用户ID |
service-compliance/internal/handler/dto.ConsentItemResponse
service-compliance/internal/handler/dto.ErrorResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
code |
integer |
否 |
400 |
|
|
message |
string |
否 |
invalid request |
|
|