SysNotice Implement

This commit is contained in:
samisgod
2021-12-15 16:12:22 +08:00
committed by 不做码农
parent 9b35a31306
commit 1f13a996c0
9 changed files with 312 additions and 22 deletions

View File

@@ -0,0 +1,32 @@
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using ZR.Model.Dto;
using ZR.Model.Models;
namespace ZR.Model.Dto
{
/// <summary>
/// 通知公告表输入对象
/// </summary>
public class SysNoticeDto
{
public int NoticeId { get; set; }
public string NoticeTitle { get; set; }
public string NoticeType { get; set; }
public string NoticeContent { get; set; }
public string Status { get; set; }
public string Remark { get; set; }
}
/// <summary>
/// 通知公告表查询对象
/// </summary>
public class SysNoticeQueryDto : PagerInfo
{
public string NoticeTitle { get; set; }
public string NoticeType { get; set; }
public string CreateBy { get; set; }
}
}

View File

@@ -0,0 +1,48 @@
using System;
using System.Collections.Generic;
using SqlSugar;
using ZR.Model.System;
namespace ZR.Model.Models
{
/// <summary>
/// 通知公告表,数据实体对象
///
/// @author zr
/// @date 2021-12-15
/// </summary>
[SugarTable("sys_notice")]
[Tenant(0)]
public class SysNotice : SysBase
{
/// <summary>
/// 描述 : 公告ID
/// 空值 : true
/// </summary>
[SqlSugar.SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "notice_id")]
public int NoticeId { get; set; }
/// <summary>
/// 描述 : 公告标题
/// 空值 : true
/// </summary>
[SugarColumn(ColumnName = "notice_title")]
public string NoticeTitle { get; set; }
/// <summary>
/// 描述 : 公告类型 (1通知 2公告)
/// 空值 : true
/// </summary>
[SugarColumn(ColumnName = "notice_type")]
public string NoticeType { get; set; }
/// <summary>
/// 描述 : 公告内容
/// 空值 : true
/// </summary>
[SugarColumn(ColumnName = "notice_content")]
public string NoticeContent { get; set; }
/// <summary>
/// 描述 : 公告状态 (0正常 1关闭)
/// 空值 : true
/// </summary>
public string Status { get; set; }
}
}