53 lines
1.2 KiB
C#
53 lines
1.2 KiB
C#
using System.Text.Json.Serialization;
|
|
using TakeoutSaaS.Shared.Abstractions.Serialization;
|
|
|
|
namespace TakeoutSaaS.Application.App.Merchants.Dto;
|
|
|
|
/// <summary>
|
|
/// 商户变更日志 DTO。
|
|
/// </summary>
|
|
public sealed class MerchantChangeLogDto
|
|
{
|
|
/// <summary>
|
|
/// 日志 ID。
|
|
/// </summary>
|
|
[JsonConverter(typeof(SnowflakeIdJsonConverter))]
|
|
public long Id { get; init; }
|
|
|
|
/// <summary>
|
|
/// 变更字段。
|
|
/// </summary>
|
|
public string FieldName { get; init; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 变更前值。
|
|
/// </summary>
|
|
public string? OldValue { get; init; }
|
|
|
|
/// <summary>
|
|
/// 变更后值。
|
|
/// </summary>
|
|
public string? NewValue { get; init; }
|
|
|
|
/// <summary>
|
|
/// 变更人 ID。
|
|
/// </summary>
|
|
[JsonConverter(typeof(NullableSnowflakeIdJsonConverter))]
|
|
public long? ChangedBy { get; init; }
|
|
|
|
/// <summary>
|
|
/// 变更人名称。
|
|
/// </summary>
|
|
public string? ChangedByName { get; init; }
|
|
|
|
/// <summary>
|
|
/// 变更时间。
|
|
/// </summary>
|
|
public DateTime ChangedAt { get; init; }
|
|
|
|
/// <summary>
|
|
/// 变更原因。
|
|
/// </summary>
|
|
public string? ChangeReason { get; init; }
|
|
}
|