/auth/me/consent
记录用户对特定隐私范围的同意授权,用于GDPR合规
Request Body
Schema: dto.ConsentRequest
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
scope |
string |
Yes | marketing |
Scope | |
granted |
boolean |
No | Granted | ||
metadata |
object |
No | Metadata |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | 操作成功 | dto.RecordConsentResponse |
Referenced Schemas
dto.RecordConsentResponse
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
code |
integer |
No | |||
data |
object |
No | |||
message |
string |
No |