修改接口

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
@@ -22,8 +22,39 @@ namespace IRaCIS.Core.Application.ViewModel
public DateTime CreateTime { get; set; }
public Guid CreateUserId { get; set; }
public List<EmailUserInfoDto> TrialEmailNoticeUserList { get; set; }
public new Guid FromUserId => TrialEmailNoticeUserList.Where(t => t.EmailUserType == EmailUserType.From).Select(t => t.UserId).FirstOrDefault();
public new List<Guid> ToUserIdList => TrialEmailNoticeUserList.Where(t => t.EmailUserType == EmailUserType.To).Select(t => t.UserId).ToList();
public new List<Guid> CopyUserIdList => TrialEmailNoticeUserList.Where(t => t.EmailUserType == EmailUserType.Copy).Select(t => t.UserId).ToList();
}
public class EmailUserInfoDto
{
public Guid UserId { get; set; }
public Guid TrialEmailNoticeConfigId { get; set; }
public EmailUserType EmailUserType { get; set; }
public string Email { get; set; }
public string UserName { get; set; }
public string RealName { get; set; }
}
///<summary>TrialEmailNoticeConfigQuery 列表查询参数模型</summary>
public class TrialEmailNoticeConfigQuery
{
@@ -51,14 +82,21 @@ namespace IRaCIS.Core.Application.ViewModel
public CriterionType CriterionTypeEnum { get; set; }
public List<string> ReceiveEmailList { get; set; }
public List<string> CopyEmailList { get; set; }
[JsonIgnore]
public string ReceiveEmailsStr { get; set; } = string.Empty;
public Guid FromUserId { get; set; }
public List<Guid> ToUserIdList { get; set; }
public List<Guid> CopyUserIdList { get; set; }
[JsonIgnore]
public string CopyEmailsStr { get; set; } = string.Empty;
//public List<string> ReceiveEmailList { get; set; }
//public List<string> CopyEmailList { get; set; }
//[JsonIgnore]
//public string ReceiveEmailsStr { get; set; } = string.Empty;
//[JsonIgnore]
//public string CopyEmailsStr { get; set; } = string.Empty;
public string FromEmail { get; set; } = string.Empty;