/auth/me/consent
记录用户对特定隐私范围的同意授权,用于GDPR合规
请求体
Schema: service-identity/internal/handler/dto.ConsentRequest
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
scope |
string |
是 | marketing |
Scope | |
granted |
boolean |
否 | Granted | ||
metadata |
object |
否 | Metadata |
响应
| 状态 | 描述 | Schema |
|---|---|---|
| 200 | 操作成功 | service-identity/internal/handler/dto.RecordConsentResponse |
引用的 Schema
service-identity/internal/handler/dto.RecordConsentResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
code |
integer |
否 | |||
data |
object |
否 | |||
message |
string |
否 |