feat:商户管理

This commit is contained in:
2025-12-29 16:40:27 +08:00
parent 57f4c2d394
commit dd91c1010a
62 changed files with 10536 additions and 165 deletions

View File

@@ -0,0 +1,52 @@
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; }
}