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

字段类型必填示例约束描述
code integer 否
data service-compliance/internal/handler/dto.ConsentItem 否
message string 否
timestamp string 否

service-compliance/internal/handler/dto.ErrorResponse

字段类型必填示例约束描述
code integer 否 400
message string 否 invalid request