完善系统通知,增加系统通知日志记录已读和未读通知

This commit is contained in:
2023-09-28 14:49:16 +08:00
parent b932f6f6a0
commit 1c08c837e6
11 changed files with 237 additions and 36 deletions
+2 -1
View File
@@ -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>
+3 -2
View File
@@ -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>
+13
View File
@@ -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; }
}