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