A AuthMS API Wiki API Reference iam.tianv.com →

GET /admin/compliance/gdpr/consent/{id}

根据ID获取单个用户同意记录的详细信息

合规管理 - 同意 `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
id path string Yes consent ID

Responses

StatusDescriptionSchema
200successdto.ConsentItemResponse
400bad requestdto.ErrorResponse

Referenced Schemas

dto.ConsentItem

用户同意记录

FieldTypeRequiredExampleConstraintsDescription
consent_method string No explicit 同意方式
expired_at string No 2026-04-16T14:00:00Z 过期时间
granted boolean No True 是否同意
granted_at string No 2026-04-15T10:00:00Z 同意时间
id string No consent_001 同意记录ID
purpose string No marketing_communication 处理目的
service string No newsletter 服务名称
user_id string No usr_abc123 用户ID

dto.ConsentItemResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
data dto.ConsentItem No
message string No
timestamp string No

dto.ErrorResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No 400
message string No invalid request