@@ -282,6 +282,31 @@ namespace IRaCIS.Core.Application.Contracts
|
||||
|
||||
}
|
||||
|
||||
public class SendCheckSiteSurveyUserCommand
|
||||
{
|
||||
public string Email { get; set; } = string.Empty;
|
||||
|
||||
public string FullName { get; set; }
|
||||
|
||||
[NotDefault]
|
||||
public Guid TrialId { get; set; }
|
||||
}
|
||||
|
||||
|
||||
public class SendUpdateSiteSurveyUserCommand
|
||||
{
|
||||
|
||||
public string Url { get; set; }
|
||||
|
||||
public string Email { get; set; } = string.Empty;
|
||||
|
||||
public string FullName { get; set; }
|
||||
|
||||
[NotDefault]
|
||||
public Guid TrialSiteId { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class LoginDto
|
||||
{
|
||||
public Guid TrialId { get; set; }
|
||||
|
||||
@@ -297,8 +297,28 @@ namespace IRaCIS.Core.Application.Contracts
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 核对中心人员发送邮件
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public async Task<IResponseOutput> SendCheckSiteSurveyUserEmail(SendCheckSiteSurveyUserCommand inCommand)
|
||||
{
|
||||
await SafeMailHelper.Run(async () => await _mailVerificationService.SiteSuervyCheckUser(inCommand.TrialId, inCommand.Email, inCommand.FullName));
|
||||
|
||||
return ResponseOutput.Ok();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新中心人员发送邮件
|
||||
/// </summary>
|
||||
/// <param name="inCommand"></param>
|
||||
/// <returns></returns>
|
||||
public async Task<IResponseOutput> SendUpdateSiteSurveyUserEmail(SendUpdateSiteSurveyUserCommand inCommand)
|
||||
{
|
||||
await SafeMailHelper.Run(async () => await _mailVerificationService.SiteSuervyUpdateUser(inCommand.TrialSiteId, inCommand.Email, inCommand.FullName, inCommand.Url));
|
||||
|
||||
return ResponseOutput.Ok();
|
||||
}
|
||||
|
||||
#region 中心调研修改
|
||||
|
||||
|
||||
Reference in New Issue
Block a user