using DS.Module.Core.Data; using SqlSugar; namespace DS.WMS.Core.Op.Entity.TaskInteraction { /// /// 任务邮件发送配置 /// [SugarTable("business_task_mail", "任务邮件发送配置")] public class BusinessTaskMail : BaseOrgModelV2 { ///// ///// 任务类型 ///// //[SugarColumn(ColumnDescription = "任务类型", IsNullable = false)] //public TaskBaseTypeEnum TaskType { get; set; } ///// ///// 任务状态 ///// //[SugarColumn(ColumnDescription = "任务状态", IsNullable = false)] //public TaskStatusEnum TaskStatus { get; set; } = TaskStatusEnum.Complete; /// /// 配置名称 /// [SugarColumn(ColumnDescription = "配置名称", Length = 100, IsNullable = false)] public string Name { get; set; } = string.Empty; /// /// 主题 /// [SugarColumn(ColumnDescription = "主题", Length = 200, IsNullable = false)] public string Title { get; set; } = string.Empty; /// /// 内容 /// [SugarColumn(ColumnDescription = "内容", ColumnDataType = "text", IsNullable = false)] public string Content { get; set; } = string.Empty; /// /// 客户名称 /// [SugarColumn(ColumnDescription = "客户名称", Length = 200, IsNullable = true)] public string? CustomerName { get; set; } /// /// 服务器设置ID /// [SugarColumn(ColumnDescription = "服务器设置ID", IsNullable = false)] public long ServerId { get; set; } /// /// 接收人设置 /// [Navigate(NavigateType.OneToOne, nameof(Id))] public BusinessTaskMailReceiver? Receiver { get; set; } /// /// 发送人设置 /// [Navigate(NavigateType.OneToOne, nameof(Id))] public BusinessTaskMailSender? Sender { get; set; } /// /// 附件设置 /// [Navigate(NavigateType.OneToMany, nameof(BusinessTaskAttachment.TaskMailId))] public List? Attachments { get; set; } } }