新增删除修改通知后,会向当前登录的用户组发送通知,修改通知后,如果该通知之前被用户已读过,则将其重新置于未读状态

This commit is contained in:
2023-10-20 17:12:58 +08:00
parent 99d2ebcbe8
commit 67992af570
6 changed files with 265 additions and 70 deletions
+32 -1
View File
@@ -10,7 +10,7 @@ namespace ZR.ServiceCore.Model
/// </summary>
[SugarTable("sys_notice", "通知公告表")]
[Tenant(0)]
public class SysNotice : SysBase
public class SysNotice
{
/// <summary>
/// 公告ID
@@ -38,5 +38,36 @@ namespace ZR.ServiceCore.Model
/// </summary>
[SugarColumn(DefaultValue = "0", ExtendedAttribute = ProteryConstant.NOTNULL)]
public int Status { get; set; }
/// <summary>
/// 备注
/// </summary>
public string Remark { get; set; }
[SugarColumn(IsOnlyIgnoreUpdate = true)]
[JsonProperty(propertyName: "CreateBy")]
public long Create_by { get; set; }
[SugarColumn(IsOnlyIgnoreUpdate = true)]
[JsonProperty(propertyName: "CreateName")]
public string Create_name { get; set; }
[JsonProperty(propertyName: "CreateTime")]
public DateTime Create_time { get; set; } = DateTime.Now;
[JsonIgnore]
[JsonProperty(propertyName: "UpdateBy")]
[SugarColumn(IsOnlyIgnoreInsert = true)]
public long Update_by { get; set; }
[JsonIgnore]
[JsonProperty(propertyName: "UpdateName")]
[SugarColumn(IsOnlyIgnoreInsert = true)]
public string Update_name { get; set; }
//[JsonIgnore]
[SugarColumn(IsOnlyIgnoreInsert = true)]
[JsonProperty(propertyName: "UpdateTime")]
public DateTime? Update_time { get; set; }
}
}
+11
View File
@@ -10,4 +10,15 @@ public class SysNoticeLog
public long UserId { get; set; }
public string Status { get; set; }
public SysNoticeLog()
{
}
public SysNoticeLog(long noticeId, long userId, string status)
{
NoticeId = noticeId;
UserId = userId;
Status = status;
}
}