chore: 提交当前变更

This commit is contained in:
2025-11-23 12:47:29 +08:00
parent cd52131c34
commit 429d4fb747
46 changed files with 1864 additions and 63 deletions

View File

@@ -0,0 +1,61 @@
using System.Collections.Generic;
using TakeoutSaaS.Domain.Dictionary.Enums;
using TakeoutSaaS.Shared.Abstractions.Entities;
namespace TakeoutSaaS.Domain.Dictionary.Entities;
/// <summary>
/// 参数字典分组(系统参数/业务参数)。
/// </summary>
public sealed class DictionaryGroup : IMultiTenantEntity, IAuditableEntity
{
/// <summary>
/// 分组 ID。
/// </summary>
public Guid Id { get; set; }
/// <summary>
/// 所属租户(系统参数为 Guid.Empty
/// </summary>
public Guid TenantId { get; set; }
/// <summary>
/// 分组编码(唯一)。
/// </summary>
public string Code { get; set; } = string.Empty;
/// <summary>
/// 分组名称。
/// </summary>
public string Name { get; set; } = string.Empty;
/// <summary>
/// 分组作用域:系统/业务。
/// </summary>
public DictionaryScope Scope { get; set; } = DictionaryScope.Business;
/// <summary>
/// 描述信息。
/// </summary>
public string? Description { get; set; }
/// <summary>
/// 是否启用。
/// </summary>
public bool IsEnabled { get; set; } = true;
/// <summary>
/// 创建时间UTC
/// </summary>
public DateTime CreatedAt { get; set; }
/// <summary>
/// 更新时间UTC
/// </summary>
public DateTime? UpdatedAt { get; set; }
/// <summary>
/// 字典项集合。
/// </summary>
public ICollection<DictionaryItem> Items { get; set; } = new List<DictionaryItem>();
}