using NPin.Framework.SqlSugarCore.Abstractions.Data; using SqlSugar; using Volo.Abp.Auditing; using Volo.Abp.Domain.Entities; namespace NPin.Framework.Upms.Domain.Entities; [SugarTable("SysAnnouncement", "系统公告表")] public class AnnouncementEntity : Entity, ISoftDelete, IAuditedObject, IOrderNum, IEnabled { [SugarColumn(IsPrimaryKey = true)] public override Guid Id { get; protected set; } [SugarColumn(ColumnDescription = "公告标题")] public string Title { get; set; } [SugarColumn(ColumnDescription = "公告分类")] public string Category { get; set; } [SugarColumn(ColumnDescription = "公告行为")] public string Action { get; set; } [SugarColumn(ColumnDescription = "公告内容", ColumnDataType = StaticConfig.CodeFirst_BigString)] public string Content { get; set; } public bool IsDeleted { get; set; } public DateTime CreationTime { get; set; } = DateTime.Now; public Guid? CreatorId { get; set; } public DateTime? LastModificationTime { get; set; } public Guid? LastModifierId { get; set; } public int OrderNum { get; set; } public bool IsEnabled { get; set; } }