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

GET /auth/me/audit-logs

分页查询当前用户的操作审计日志,支持按时间范围和操作类型筛选

账户管理 `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
page query integer No 1 页码
page_size query integer No 20 每页条数
start_date query string No 开始日期
end_date query string No 结束日期
action query string No 操作类型

Responses

StatusDescriptionSchema
200审计日志列表dto.AuditLogListResponse

Referenced Schemas

dto.AuditLogListResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
items array of

See dto.AuditLogResponse

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

dto.AuditLogResponse

审计日志记录

FieldTypeRequiredExampleConstraintsDescription
action string No user.login Action
created_at string No 2026-04-15T10:30:00Z 时间
details string No details Details
id string No audit_abc123 日志ID
ip string No 192.168.1.1 IP
resource string No session Resource
resource_id string No sess_123 Resource ID
status string No success Status
tenant_id string No tnt_xyz789 租户ID
user_agent string No Mozilla/5.0 User-Agent
user_id string No usr_abc123 用户ID

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