29 lines
702 B
C#
29 lines
702 B
C#
using System.Text.Json.Serialization;
|
|
using TakeoutSaaS.Shared.Abstractions.Serialization;
|
|
|
|
namespace TakeoutSaaS.Application.Dictionary.Models;
|
|
|
|
/// <summary>
|
|
/// 字典项 DTO。
|
|
/// </summary>
|
|
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; }
|
|
}
|