修改接口

This commit is contained in:
2022-10-21 17:07:03 +08:00
parent b76969ad20
commit 15fd8109c3
9 changed files with 194 additions and 36 deletions
@@ -215,6 +215,11 @@ namespace IRaCIS.Core.Domain.Models
#endregion
[JsonIgnore]
public Trial Trial { get; set; }
[JsonIgnore]
public List<ReadingTaskQuestionAnswer> ReadingTaskQuestionAnswerList { get; set; } = new List<ReadingTaskQuestionAnswer>();
@@ -26,15 +26,22 @@ namespace IRaCIS.Core.Domain.Models
public string AuthorizationCode { get; set; } = string.Empty;
public string ReceiveEmailsStr { get; set; } = string.Empty;
public string CopyEmailsStr { get; set; } = string.Empty;
public List<TrialEmailNoticeUser> TrialEmailNoticeUserList { get; set; } = new List<TrialEmailNoticeUser>();
[NotMapped]
public List<string> ReceiveEmailList => ReceiveEmailsStr.Split('|', StringSplitOptions.RemoveEmptyEntries).Where(t => !string.IsNullOrEmpty(t)).Select(t=>t.Trim()).ToList();
//[Required]
//public string FromEmail { get; set; }
//public string ReceiveEmailsStr { get; set; } = string.Empty;
//public string CopyEmailsStr { get; set; } = string.Empty;
//[NotMapped]
//public List<string> ReceiveEmailList => ReceiveEmailsStr.Split('|', StringSplitOptions.RemoveEmptyEntries).Where(t => !string.IsNullOrEmpty(t)).Select(t=>t.Trim()).ToList();
//[NotMapped]
//public List<string> CopyEmailList => CopyEmailsStr.Split('|', StringSplitOptions.RemoveEmptyEntries).Where(t=> !string.IsNullOrEmpty(t)).Select(t => t.Trim()).ToList();
[NotMapped]
public List<string> CopyEmailList => CopyEmailsStr.Split('|', StringSplitOptions.RemoveEmptyEntries).Where(t=> !string.IsNullOrEmpty(t)).Select(t => t.Trim()).ToList();
[Required]
public bool IsUrgent { get; set; }
@@ -48,8 +55,7 @@ namespace IRaCIS.Core.Domain.Models
[Required]
public bool IsReturnRequired { get; set; }
[Required]
public string FromEmail { get; set; }
[Required]
public bool IsAutoSend { get; set; }
@@ -0,0 +1,35 @@
//--------------------------------------------------------------------
// 此代码由T4模板自动生成 byzhouhang 20210918
// 生成时间 2022-10-21 16:06:20
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
using System;
using IRaCIS.Core.Domain.Share;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace IRaCIS.Core.Domain.Models
{
///<summary>
///TrialEmailNoticeUser
///</summary>
[Table("TrialEmailNoticeUser")]
public class TrialEmailNoticeUser : Entity
{
[JsonIgnore]
public User User { get; set; }
[JsonIgnore]
public TrialEmailNoticeConfig TrialEmailNoticeConfig { get; set; }
public Guid UserId { get; set; }
public Guid TrialEmailNoticeConfigId { get; set; }
public EmailUserType EmailUserType { get; set; }
}
}