2021-09-28 18:17:31 +08:00
|
|
|
|
using System;
|
2023-05-27 18:31:48 +08:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
2021-09-28 18:17:31 +08:00
|
|
|
|
|
|
|
|
|
|
namespace Infrastructure.Model
|
|
|
|
|
|
{
|
|
|
|
|
|
public class SendEmailDto
|
|
|
|
|
|
{
|
2023-05-27 18:31:48 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 文件地址
|
|
|
|
|
|
/// </summary>
|
2021-09-28 18:17:31 +08:00
|
|
|
|
public string FileUrl { get; set; } = "";
|
2023-05-27 18:31:48 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 主题
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Required(ErrorMessage = "主题不能为空")]
|
2021-09-28 18:17:31 +08:00
|
|
|
|
public string Subject { get; set; }
|
2023-05-27 18:31:48 +08:00
|
|
|
|
[Required(ErrorMessage = "发送人不能为空")]
|
2021-09-28 18:17:31 +08:00
|
|
|
|
public string ToUser { get; set; }
|
|
|
|
|
|
public string Content { get; set; } = "";
|
|
|
|
|
|
public string HtmlContent { get; set; }
|
2021-12-21 21:29:55 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 是否发送给自己
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public bool SendMe { get; set; }
|
2021-09-28 18:17:31 +08:00
|
|
|
|
public DateTime AddTime { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|