/admin/compliance/retention-policies
分页查询所有数据保留策略配置
Request Parameters
| Name | In | Type | Required | Default | Example | Constraints | Description |
|---|---|---|---|---|---|---|---|
page |
query |
integer |
No | page number | |||
page_size |
query |
integer |
No | page size |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | success | dto.RetentionPolicyListResponse |
| 400 | bad request | dto.ErrorResponse |
Referenced Schemas
dto.ErrorResponse
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
code |
integer |
No | 400 |
||
message |
string |
No | invalid request |
dto.RetentionPolicyItem
数据保留策略
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
data_type |
string |
No | user_activity_logs |
数据类型 | |
legal_basis |
string |
No | 合同义务 |
法律依据 | |
policy_id |
string |
No | ret_001 |
策略ID | |
purpose |
string |
No | 安全审计 |
保留目的 | |
retention_period_days |
integer |
No | 365 |
保留天数 | |
status |
string |
No | active |
状态 |
dto.RetentionPolicyListResponse
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
code |
integer |
No | |||
items |
array of |
No | 统一使用 items | ||
message |
string |
No | |||
pagination |
object |
No | 分页信息(嵌套对象) | ||
timestamp |
string |
No | |||
total |
integer |
No | 总条数(平铺,便于直接读取) |
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 |