using System; using System.ComponentModel.DataAnnotations; namespace Infrastructure.Model { public class SendEmailDto { /// /// 文件地址 /// public string FileUrl { get; set; } = ""; /// /// 主题 /// [Required(ErrorMessage = "主题不能为空")] public string Subject { get; set; } [Required(ErrorMessage = "发送人不能为空")] public string ToUser { get; set; } public string Content { get; set; } = ""; public string HtmlContent { get; set; } /// /// 是否发送给自己 /// public bool SendMe { get; set; } public DateTime AddTime { get; set; } /// /// 是否发送 /// public bool IsSend { get; set; } /// /// 发送邮箱 /// public string FromName { get; set; } public string FromEmail { get; set; } } }