版本260406
This commit is contained in:
112
OrpaonVision.Core/Audit/Contracts/AuditLogDetailDto.cs
Normal file
112
OrpaonVision.Core/Audit/Contracts/AuditLogDetailDto.cs
Normal file
@@ -0,0 +1,112 @@
|
||||
namespace OrpaonVision.Core.Audit.Contracts;
|
||||
|
||||
/// <summary>
|
||||
/// 审计日志详情。
|
||||
/// </summary>
|
||||
public sealed class AuditLogDetailDto
|
||||
{
|
||||
/// <summary>
|
||||
/// 审计日志ID。
|
||||
/// </summary>
|
||||
public Guid AuditLogId { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 操作类型。
|
||||
/// </summary>
|
||||
public string ActionType { get; init; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 操作模块。
|
||||
/// </summary>
|
||||
public string Module { get; init; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 操作描述。
|
||||
/// </summary>
|
||||
public string Description { get; init; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 操作者用户ID。
|
||||
/// </summary>
|
||||
public Guid? OperatorUserId { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 操作者用户名。
|
||||
/// </summary>
|
||||
public string OperatorUserName { get; init; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 操作者IP地址。
|
||||
/// </summary>
|
||||
public string OperatorIpAddress { get; init; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 操作者用户代理。
|
||||
/// </summary>
|
||||
public string OperatorUserAgent { get; init; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 目标资源ID。
|
||||
/// </summary>
|
||||
public string? TargetResourceId { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 目标资源类型。
|
||||
/// </summary>
|
||||
public string? TargetResourceType { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 操作结果。
|
||||
/// </summary>
|
||||
public string Result { get; init; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 操作时间(UTC)。
|
||||
/// </summary>
|
||||
public DateTime OperatedAtUtc { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 操作持续时间(毫秒)。
|
||||
/// </summary>
|
||||
public long DurationMs { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 请求参数(JSON)。
|
||||
/// </summary>
|
||||
public string RequestParametersJson { get; init; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 响应数据(JSON)。
|
||||
/// </summary>
|
||||
public string ResponseDataJson { get; init; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 错误信息。
|
||||
/// </summary>
|
||||
public string ErrorMessage { get; init; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 异常堆栈。
|
||||
/// </summary>
|
||||
public string ExceptionStackTrace { get; init; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 会话ID。
|
||||
/// </summary>
|
||||
public string? SessionId { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 跟踪ID。
|
||||
/// </summary>
|
||||
public string TraceId { get; init; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 风险级别。
|
||||
/// </summary>
|
||||
public string RiskLevel { get; init; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 业务上下文(JSON)。
|
||||
/// </summary>
|
||||
public string BusinessContextJson { get; init; } = string.Empty;
|
||||
}
|
||||
Reference in New Issue
Block a user