using SqlSugar;
using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace Myshipping.Core.Entity;
///
/// 通知公告表
///
[SugarTable("sys_notice")]
[Description("通知公告表")]
public class SysNotice : DEntityBase
{
///
/// 标题
///
[Required, MaxLength(20)]
public string Title { get; set; }
///
/// 内容
///
[Required]
public string Content { get; set; }
///
/// 类型(字典 1通知 2公告)
///
public NoticeType Type { get; set; }
///
/// 发布人Id
///
public long PublicUserId { get; set; }
///
/// 发布人姓名
///
[MaxLength(20)]
public string PublicUserName { get; set; }
///
/// 发布机构Id
///
public long PublicOrgId { get; set; }
///
/// 发布机构名称
///
[MaxLength(50)]
public string PublicOrgName { get; set; }
///
/// 发布时间
///
public DateTime PublicTime { get; set; }
///
/// 撤回时间
///
public DateTime CancelTime { get; set; }
///
/// 状态(字典 0草稿 1发布 2撤回 3删除)
///
public NoticeStatus Status { get; set; }
}