GET /admin/compliance/gdpr/consent
Paginated query of all user consent records, filterable by purpose and user
Compliance Management - Consent `bearerAuth` application/json
Request Parameters
| Name | In | Type | Required | Default | Example | Constraints | Description |
user_id |
query |
string |
No |
|
|
|
user ID |
service |
query |
string |
No |
|
|
|
service filter |
purpose |
query |
string |
No |
|
|
|
purpose filter |
page |
query |
integer |
No |
|
|
|
page number |
page_size |
query |
integer |
No |
|
|
|
page size |
sort_by |
query |
string |
No |
|
|
|
sort field |
sort_order |
query |
string |
No |
|
|
|
sort order |
Referenced Schemas
dto.ConsentItem
User consent record
| Field | Type | Required | Example | Constraints | Description |
consent_method |
string |
No |
explicit |
|
Consent method |
expired_at |
string |
No |
2026-04-16T14:00:00Z |
|
Expiration time |
granted |
boolean |
No |
True |
|
Consent given |
granted_at |
string |
No |
2026-04-15T10:00:00Z |
|
Consent time |
id |
string |
No |
consent_001 |
|
Consent record ID |
purpose |
string |
No |
marketing_communication |
|
Processing purpose |
service |
string |
No |
newsletter |
|
Service name |
user_id |
string |
No |
usr_abc123 |
|
User ID |
dto.ConsentListResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
items |
array of
See dto.ConsentItem |
No |
|
|
Use items uniformly |
message |
string |
No |
|
|
|
pagination |
object |
No |
|
|
Pagination information (nested object) |
timestamp |
string |
No |
|
|
|
total |
integer |
No |
|
|
Total count (flat, for direct reading) |
dto.ErrorResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
400 |
|
|
message |
string |
No |
invalid request |
|
|
gitee_com_linmes_authms_base_dto.PageInfo
| Field | Type | Required | Example | Constraints | Description |
has_next |
boolean |
No |
|
|
HasNext indicates whether there is a next page |
has_prev |
boolean |
No |
|
|
HasPrev indicates whether there is a previous page |
page |
integer |
No |
|
|
Page is the current page number (1-based) |
page_size |
integer |
No |
|
|
PageSize is the number of items per page |
total |
integer |
No |
|
|
Total is the total number of items across all pages |
total_pages |
integer |
No |
|
|
TotalPages is the total number of pages |