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