/auth/me/security-events
分页获取用户的安全相关事件(异常登录、密码变更、MFA变更等) 自动过滤已dismiss的事件
Request Parameters
| Name | In | Type | Required | Default | Example | Constraints | Description |
|---|---|---|---|---|---|---|---|
page |
query |
integer |
No | 1 |
页码 | ||
page_size |
query |
integer |
No | 20 |
每页条数 |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | 成功 | dto.SecurityEventListResponse |
Referenced Schemas
dto.SecurityEventListResponse
| 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 | 总条数(平铺,便于直接读取) |
dto.SecurityEventResponse
用户安全事件
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
created_at |
string |
No | 2026-04-15T10:30:00Z |
事件时间 | |
description |
string |
No | New login from Beijing, CN |
描述 | |
dismissed |
boolean |
No | False |
是否已处理 | |
id |
string |
No | evt_abc123 |
事件ID | |
ip |
string |
No | 203.0.113.1 |
来源IP | |
location |
string |
No | Beijing, CN |
来源位置 | |
severity |
string |
No | medium |
严重级别 | |
type |
string |
No | anomalous_login |
事件类型 |
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 |