using SqlSugar; using Volo.Abp.Domain.Entities.Auditing; namespace Yi.Framework.AiHub.Domain.Entities; /// /// 公告日志 /// [SugarTable("Ai_AnnouncementLog")] [SugarIndex($"index_{nameof(Date)}", nameof(Date), OrderByType.Desc)] public class AnnouncementLogAggregateRoot : FullAuditedAggregateRoot { public AnnouncementLogAggregateRoot() { } public AnnouncementLogAggregateRoot(DateTime date, string title, List content) { Date = date; Title = title; Content = content; } /// /// 日期 /// public DateTime Date { get; set; } /// /// 标题 /// public string Title { get; set; } = string.Empty; /// /// 内容列表(JSON格式存储) /// [SugarColumn(IsJson = true, IsNullable = false)] public List Content { get; set; } = new List(); /// /// 备注 /// public string? Remark { get; set; } }