/admin/mfa/config-audit-logs
查询MFA配置变更的审计日志,支持按操作类型、目标类型、操作者、日期范围筛选。需要管理员权限。
Request Parameters
| Name | In | Type | Required | Default | Example | Constraints | Description |
|---|---|---|---|---|---|---|---|
action |
query |
string |
No | 操作类型过滤 | |||
target_type |
query |
string |
No | 目标类型过滤 | |||
operator_id |
query |
string |
No | 操作者ID过滤 | |||
start_date |
query |
string |
No | 开始日期(YYYY-MM-DD) | |||
end_date |
query |
string |
No | 结束日期(YYYY-MM-DD) | |||
page |
query |
integer |
No | 页码 | |||
page_size |
query |
integer |
No | 每页条数 |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | 审计日志查询结果 | dto.MFAConfigAuditLogListResponse |
| 400 | 参数错误 | gitee_com_linmes_authms_base_dto.SimpleResponse |
| 401 | 未认证 | gitee_com_linmes_authms_base_dto.SimpleResponse |
| 403 | 权限不足 | gitee_com_linmes_authms_base_dto.SimpleResponse |
| 500 | 服务器内部错误 | gitee_com_linmes_authms_base_dto.SimpleResponse |
Referenced Schemas
dto.MFAConfigAuditLogItem
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
action |
string |
No | mfa_totp.enabled |
||
id |
string |
No | log_abc123 |
||
message |
string |
No | TOTP enabled successfully |
||
module |
string |
No | data |
||
operator_id |
string |
No | usr_admin |
||
target_id |
string |
No | mfa_abc123 |
||
target_type |
string |
No | mfa_totp |
||
tenant_id |
string |
No | tnt_001 |
||
timestamp |
string |
No | 2026-05-15T10:00:00Z |
dto.MFAConfigAuditLogListResponse
| 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 |
gitee_com_linmes_authms_base_dto.SimpleResponse
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
code |
integer |
No | |||
message |
string |
No | |||
timestamp |
string |
No |