feat: 身份操作日志改造为Outbox并修正日志库连接

This commit is contained in:
2025-12-27 09:33:16 +08:00
parent 04444c6554
commit 2d09a629be
30 changed files with 1840 additions and 99 deletions

View File

@@ -0,0 +1,47 @@
namespace TakeoutSaaS.Application.Identity.Events;
/// <summary>
/// 身份用户操作日志消息。
/// </summary>
public sealed record IdentityUserOperationLogMessage
{
/// <summary>
/// 操作类型。
/// </summary>
public string OperationType { get; init; } = string.Empty;
/// <summary>
/// 目标类型。
/// </summary>
public string TargetType { get; init; } = string.Empty;
/// <summary>
/// 目标 ID 列表JSON
/// </summary>
public string? TargetIds { get; init; }
/// <summary>
/// 操作人 ID。
/// </summary>
public string? OperatorId { get; init; }
/// <summary>
/// 操作人名称。
/// </summary>
public string? OperatorName { get; init; }
/// <summary>
/// 操作参数JSON
/// </summary>
public string? Parameters { get; init; }
/// <summary>
/// 操作结果JSON
/// </summary>
public string? Result { get; init; }
/// <summary>
/// 是否成功。
/// </summary>
public bool Success { get; init; }
}