完善系统通知,增加系统通知日志记录已读和未读通知
This commit is contained in:
@@ -8,13 +8,14 @@ namespace ZR.ServiceCore.Model.Dto
|
||||
/// </summary>
|
||||
public class SysNoticeDto
|
||||
{
|
||||
public int NoticeId { get; set; }
|
||||
public string NoticeId { get; set; }
|
||||
[Required]
|
||||
public string NoticeTitle { get; set; }
|
||||
public int NoticeType { get; set; }
|
||||
public string NoticeContent { get; set; }
|
||||
public int Status { get; set; }
|
||||
public string Remark { get; set; }
|
||||
public DateTime Create_time { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -15,8 +15,9 @@ namespace ZR.ServiceCore.Model
|
||||
/// <summary>
|
||||
/// 公告ID
|
||||
/// </summary>
|
||||
[SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "notice_id")]
|
||||
public int NoticeId { get; set; }
|
||||
[SugarColumn(IsPrimaryKey = true, ColumnName = "notice_id")]
|
||||
[JsonConverter(typeof(ValueToStringConverter))]
|
||||
public long NoticeId { get; set; }
|
||||
/// <summary>
|
||||
/// 公告标题
|
||||
/// </summary>
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
namespace ZR.Model.System;
|
||||
|
||||
[SugarTable("sys_notice_log")]
|
||||
public class SysNoticeLog
|
||||
{
|
||||
[JsonConverter(typeof(ValueToStringConverter))]
|
||||
public long NoticeId { get; set; }
|
||||
|
||||
[JsonConverter(typeof(ValueToStringConverter))]
|
||||
public long UserId { get; set; }
|
||||
|
||||
public string Status { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user