using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace NPP.SmartSchedue.Api.Contracts.Services.Notification.Input;
///
/// 使用模板发送邮件输入
///
public class SendEmailByTemplateInput
{
///
/// 接收人邮箱
///
[Required(ErrorMessage = "接收人邮箱不能为空")]
[EmailAddress(ErrorMessage = "邮箱地址格式无效")]
public string RecipientEmail { get; set; } = "";
///
/// 邮件主题模板
///
[Required(ErrorMessage = "邮件主题模板不能为空")]
public string SubjectTemplate { get; set; } = "";
///
/// 邮件内容模板
///
[Required(ErrorMessage = "邮件内容模板不能为空")]
public string ContentTemplate { get; set; } = "";
///
/// 模板变量
///
public Dictionary Variables { get; set; } = new Dictionary();
///
/// 是否HTML格式
///
public bool IsHtml { get; set; } = true;
}