优化文章管理、日志记录

This commit is contained in:
不做码农
2023-05-27 18:31:48 +08:00
parent 5c0564c7c1
commit 13758b31b8
6 changed files with 26 additions and 48 deletions

View File

@@ -1,15 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
namespace Infrastructure.Model
{
public class SendEmailDto
{
/// <summary>
/// 文件地址
/// </summary>
public string FileUrl { get; set; } = "";
/// <summary>
/// 主题
/// </summary>
[Required(ErrorMessage = "主题不能为空")]
public string Subject { get; set; }
[Required(ErrorMessage = "发送人不能为空")]
public string ToUser { get; set; }
public string Content { get; set; } = "";
public string HtmlContent { get; set; }