feat(ops): 添加用户信息显示和搜索功能

- 在错误日志列表和详情中显示用户邮箱
- 在 GetErrorLogByID 中关联 users 表获取用户邮箱
- 在 OpsErrorLogFilter 中添加 UserQuery 字段
- 在 buildOpsErrorLogsWhere 中添加用户邮箱搜索条件
- 在 GetErrorLogs handler 中支持 user_query 参数
This commit is contained in:
IanShaw027
2026-01-14 23:56:45 +08:00
parent 9e6cd36af4
commit 2a6fb1e456
3 changed files with 13 additions and 0 deletions

View File

@@ -93,6 +93,7 @@ type OpsErrorLogFilter struct {
Source string
Resolved *bool
Query string
UserQuery string // Search by user email
// Optional correlation keys for exact matching.
RequestID string