You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
72 lines
2.0 KiB
72 lines
2.0 KiB
3 weeks ago
|
using SqlSugar;
|
||
|
|
||
|
namespace Wood.Entity.SystemManage
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 系统消息主表实体
|
||
|
/// </summary>
|
||
|
[SugarTable("SysMessage", "系统消息主表实体")]
|
||
|
public class MessageEntity : EntityTenantBase
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 消息标题(最大长度128字符)
|
||
|
/// </summary>
|
||
|
[SugarColumn(ColumnDescription = "消息标题", Length = 128)]
|
||
|
public string? Title { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 消息内容(TEXT类型)
|
||
|
/// </summary>
|
||
|
[SugarColumn(ColumnDescription = "消息内容", ColumnDataType = StaticConfig.CodeFirst_BigString)]
|
||
|
public string? Content { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 消息类型(0-系统通知 1-公告 2-私信)
|
||
|
/// </summary>
|
||
|
[SugarColumn(ColumnDescription = "消息类型(0-系统通知 1-公告 2-私信)", DefaultValue = "0")]
|
||
|
public MessageTypeEnum MessageType { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 消息状态
|
||
|
/// </summary>
|
||
|
[SugarColumn(ColumnDescription = "消息状态", DefaultValue = "0")]
|
||
|
public MessageStatusEnum Status { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 发布时间
|
||
|
/// </summary>
|
||
|
[SugarColumn(ColumnDescription = "发布时间", IsNullable = true)]
|
||
|
public DateTime? PublishAt { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 发布人
|
||
|
/// </summary>
|
||
|
[SugarColumn(ColumnDescription = "发布人", IsNullable = true)]
|
||
|
public long? PublisherId { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 发布人
|
||
|
/// </summary>
|
||
|
[SugarColumn(ColumnDescription = "发布人", IsNullable = true)]
|
||
|
public string? PublisherName { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 发布机构
|
||
|
/// </summary>
|
||
|
[SugarColumn(ColumnDescription = "发布机构", IsNullable = true)]
|
||
|
public long? PublisherOrgId { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 发布机构
|
||
|
/// </summary>
|
||
|
[SugarColumn(ColumnDescription = "发布机构", IsNullable = true)]
|
||
|
public string? PublisherOrgName { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 撤回时间
|
||
|
/// </summary>
|
||
|
[SugarColumn(ColumnDescription = "撤回时间", IsNullable = true)]
|
||
|
public DateTime? RecalledAt { get; set; }
|
||
|
}
|
||
|
}
|