✨ 新增邮件模板

This commit is contained in:
不做码农
2023-11-13 19:56:29 +08:00
parent 2e0db37d42
commit e234189af3
10 changed files with 253 additions and 6 deletions
+39
View File
@@ -0,0 +1,39 @@
using System.ComponentModel.DataAnnotations;
namespace ZR.Model.Dto
{
/// <summary>
/// 邮件模板查询对象
/// </summary>
public class EmailTplQueryDto : PagerInfo
{
public string Name { get; set; }
}
/// <summary>
/// 邮件模板输入输出对象
/// </summary>
public class EmailTplDto
{
public int? Id { get; set; }
[Required(ErrorMessage = "Name不能为空")]
public string Name { get; set; }
[Required(ErrorMessage = "模板内容不能为空")]
public string Content { get; set; }
public string CreateBy { get; set; }
public DateTime? CreateTime { get; set; }
public string UpdateBy { get; set; }
public DateTime? UpdateTime { get; set; }
public string Remark { get; set; }
}
}
+17
View File
@@ -0,0 +1,17 @@
using ZR.Model.System;
namespace ZR.ServiceCore.Model
{
/// <summary>
/// 邮件发送模板
/// </summary>
[SugarTable("emailTpl")]
public class EmailTpl : SysBase
{
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
public int Id { get; set; }
public string Name { get; set; }
[SugarColumn(ColumnDescription = "模板内容", ColumnDataType = StaticConfig.CodeFirst_BigString)]
public string Content { get; set; }
}
}
-3
View File
@@ -1,7 +1,4 @@
using MiniExcelLibs.Attributes;
using Newtonsoft.Json;
using SqlSugar;
using System;
namespace ZR.Model.System
{