namespace OrpaonVision.Core.Audit.Contracts.Queries; /// /// 审计日志查询条件。 /// public sealed class AuditLogQueryDto { /// /// 操作类型。 /// public string? ActionType { get; init; } /// /// 操作模块。 /// public string? Module { get; init; } /// /// 操作者用户ID。 /// public Guid? OperatorUserId { get; init; } /// /// 操作者用户名(模糊查询)。 /// public string? OperatorUserName { get; init; } /// /// 操作结果。 /// public string? Result { get; init; } /// /// 风险级别。 /// public string? RiskLevel { get; init; } /// /// 操作时间范围开始(UTC)。 /// public DateTime? OperatedAtUtcStart { get; init; } /// /// 操作时间范围结束(UTC)。 /// public DateTime? OperatedAtUtcEnd { get; init; } /// /// 目标资源类型。 /// public string? TargetResourceType { get; init; } /// /// 目标资源ID。 /// public string? TargetResourceId { get; init; } /// /// 跟踪ID。 /// public string? TraceId { get; init; } /// /// 会话ID。 /// public string? SessionId { get; init; } /// /// 是否包含错误信息。 /// public bool? HasError { get; init; } /// /// 关键字搜索(在描述、请求参数、响应数据中搜索)。 /// public string? Keyword { get; init; } /// /// 页码(从1开始)。 /// public int PageIndex { get; init; } = 1; /// /// 每页大小。 /// public int PageSize { get; init; } = 20; /// /// 排序字段。 /// public string SortField { get; init; } = "OperatedAtUtc"; /// /// 排序方向(ASC/DESC)。 /// public string SortDirection { get; init; } = "DESC"; }