2024-06-15 13:02:35 +08:00
|
|
|
|
// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。
|
|
|
|
|
|
//
|
|
|
|
|
|
// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。
|
|
|
|
|
|
//
|
|
|
|
|
|
// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任!
|
|
|
|
|
|
|
|
|
|
|
|
namespace Admin.NET.Core;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 系统通知公告表
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarTable(null, "系统通知公告表")]
|
|
|
|
|
|
[SysTable]
|
2025-06-05 19:35:21 +08:00
|
|
|
|
[SugarIndex("i_{table}_t", nameof(Type), OrderByType.Asc)]
|
2025-01-08 21:55:55 +08:00
|
|
|
|
public partial class SysNotice : EntityTenant
|
2024-06-15 13:02:35 +08:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 标题
|
|
|
|
|
|
/// </summary>
|
2025-03-27 02:32:45 +08:00
|
|
|
|
[SugarColumn(ColumnDescription = "标题", Length = 256)]
|
|
|
|
|
|
[Required, MaxLength(256)]
|
2024-06-15 13:02:35 +08:00
|
|
|
|
[SensitiveDetection('*')]
|
|
|
|
|
|
public virtual string Title { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 内容
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(ColumnDescription = "内容", ColumnDataType = StaticConfig.CodeFirst_BigString)]
|
|
|
|
|
|
[Required]
|
|
|
|
|
|
[SensitiveDetection('*')]
|
|
|
|
|
|
public virtual string Content { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 类型(1通知 2公告)
|
|
|
|
|
|
/// </summary>
|
2024-09-05 00:12:15 +08:00
|
|
|
|
[SugarColumn(ColumnDescription = "类型(1通知 2公告)", DefaultValue = "1")]
|
|
|
|
|
|
public NoticeTypeEnum Type { get; set; } = NoticeTypeEnum.NOTICE;
|
2024-06-15 13:02:35 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 发布人Id
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(ColumnDescription = "发布人Id")]
|
|
|
|
|
|
public long PublicUserId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 发布人姓名
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(ColumnDescription = "发布人姓名", Length = 32)]
|
|
|
|
|
|
[MaxLength(32)]
|
|
|
|
|
|
public string? PublicUserName { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 发布机构Id
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(ColumnDescription = "发布机构Id")]
|
|
|
|
|
|
public long PublicOrgId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 发布机构名称
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(ColumnDescription = "发布机构名称", Length = 64)]
|
|
|
|
|
|
[MaxLength(64)]
|
|
|
|
|
|
public string? PublicOrgName { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 发布时间
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(ColumnDescription = "发布时间")]
|
|
|
|
|
|
public DateTime? PublicTime { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 撤回时间
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(ColumnDescription = "撤回时间")]
|
|
|
|
|
|
public DateTime? CancelTime { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 状态(0草稿 1发布 2撤回 3删除)
|
|
|
|
|
|
/// </summary>
|
2024-09-05 00:12:15 +08:00
|
|
|
|
[SugarColumn(ColumnDescription = "状态(0草稿 1发布 2撤回 3删除)", DefaultValue = "0")]
|
|
|
|
|
|
public NoticeStatusEnum Status { get; set; } = NoticeStatusEnum.DRAFT;
|
2024-06-15 13:02:35 +08:00
|
|
|
|
}
|