using System.Text.Json.Serialization; using TakeoutSaaS.Shared.Abstractions.Serialization; namespace TakeoutSaaS.Application.App.SystemParameters.Dto; /// /// 系统参数 DTO。 /// public sealed class SystemParameterDto { /// /// 参数 ID。 /// [JsonConverter(typeof(SnowflakeIdJsonConverter))] public long Id { get; init; } /// /// 租户 ID。 /// [JsonConverter(typeof(SnowflakeIdJsonConverter))] public long TenantId { get; init; } /// /// 参数键。 /// public string Key { get; init; } = string.Empty; /// /// 参数值。 /// public string Value { get; init; } = string.Empty; /// /// 描述。 /// public string? Description { get; init; } /// /// 排序值。 /// public int SortOrder { get; init; } /// /// 是否启用。 /// public bool IsEnabled { get; init; } /// /// 创建时间。 /// public DateTime CreatedAt { get; init; } /// /// 最近更新时间。 /// public DateTime? UpdatedAt { get; init; } }