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

GET /admin/compliance/gdpr/consent

分页查询所有用户同意的记录,支持按目的和用户过滤

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

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
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

Responses

StatusDescriptionSchema
200successdto.ConsentListResponse
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.ConsentListResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
items array of

See dto.ConsentItem

No 统一使用 items
message string No
pagination object No 分页信息(嵌套对象)
timestamp string No
total integer No 总条数(平铺,便于直接读取)

dto.ErrorResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No 400
message string No invalid request

gitee_com_linmes_authms_base_dto.PageInfo

FieldTypeRequiredExampleConstraintsDescription
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