优化通知公告

This commit is contained in:
不做码农
2023-06-01 15:06:41 +08:00
parent 538dde51a8
commit 68d43240e7
9 changed files with 162 additions and 160 deletions

View File

@@ -1,3 +1,5 @@
using System.ComponentModel.DataAnnotations;
namespace ZR.Model.System.Dto
{
/// <summary>
@@ -6,10 +8,11 @@ namespace ZR.Model.System.Dto
public class SysNoticeDto
{
public int NoticeId { get; set; }
[Required]
public string NoticeTitle { get; set; }
public string NoticeType { get; set; }
public int NoticeType { get; set; }
public string NoticeContent { get; set; }
public string Status { get; set; }
public int Status { get; set; }
public string Remark { get; set; }
}
@@ -19,8 +22,8 @@ namespace ZR.Model.System.Dto
public class SysNoticeQueryDto : PagerInfo
{
public string NoticeTitle { get; set; }
public string NoticeType { get; set; }
public int? NoticeType { get; set; }
public string CreateBy { get; set; }
public string Status { get; set; }
public int? Status { get; set; }
}
}

View File

@@ -26,7 +26,7 @@ namespace ZR.Model.System
/// 公告类型 (1通知 2公告)
/// </summary>
[SugarColumn(ColumnName = "notice_type")]
public string NoticeType { get; set; }
public int NoticeType { get; set; }
/// <summary>
/// 公告内容
/// </summary>
@@ -35,6 +35,6 @@ namespace ZR.Model.System
/// <summary>
/// 公告状态 (0正常 1关闭)
/// </summary>
public string Status { get; set; }
public int Status { get; set; }
}
}