using System.Text.Json.Serialization; using TakeoutSaaS.Shared.Abstractions.Serialization; namespace TakeoutSaaS.Application.Dictionary.Models; /// /// 字典项 DTO。 /// public sealed class DictionaryItemDto { [JsonConverter(typeof(SnowflakeIdJsonConverter))] public long Id { get; init; } [JsonConverter(typeof(SnowflakeIdJsonConverter))] public long GroupId { get; init; } public string Key { get; init; } = string.Empty; public string Value { get; init; } = string.Empty; public bool IsDefault { get; init; } public bool IsEnabled { get; init; } public int SortOrder { get; init; } public string? Description { get; init; } }