feat(api): 审计查询支持按结果筛选

- AuditFilter 增加 Result 字段,Query 按 result 精确过滤
- GET /audit 接口解析 result 查询参数(success/failed)
This commit is contained in:
2026-08-30 17:27:49 +08:00
parent 13c21dfd7e
commit 7340a3dd48
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -53,6 +53,7 @@ func (h *AuditHandler) List(c *gin.Context) {
Action: c.Query("action"),
ResourceType: c.Query("resource_type"),
ResourceID: c.Query("resource_id"),
Result: c.Query("result"),
Since: since,
Until: until,
Page: page,