Compare commits

..

No commits in common. "9fc6ee267eb0b181d15fe5667b7921a80bccb373" and "9c95d22b6ae6c76290aa2d74e33771051ee8cc1e" have entirely different histories.

4 changed files with 2 additions and 66 deletions

View File

@ -1175,13 +1175,6 @@
<param name="Id"></param>
<returns></returns>
</member>
<member name="M:IRaCIS.Core.Application.Service.DoctorService.SendEmail(IRaCIS.Application.Contracts.SendEmailInDto)">
<summary>
发送邮件
</summary>
<param name="inDto"></param>
<returns></returns>
</member>
<member name="M:IRaCIS.Core.Application.Service.DoctorService.UpdatePaymentMode(IRaCIS.Application.Contracts.PaymentModeDto)">
<summary>
修改支付方式

View File

@ -315,14 +315,6 @@ namespace IRaCIS.Application.Contracts
}
public class SendEmailInDto
{
public string Email { get; set; }
public string Url { get; set; }
}
public class PaymentModeDto
{
public Guid Id { get; set; }

View File

@ -1,12 +1,8 @@
using IRaCIS.Application.Contracts;
using IRaCIS.Application.Interfaces;
using IRaCIS.Core.Application.Helper;
using IRaCIS.Core.Application.MassTransit.Consumer;
using IRaCIS.Core.Domain.Share;
using IRaCIS.Core.Infrastructure;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Options;
using MimeKit;
namespace IRaCIS.Core.Application.Service
{
@ -15,15 +11,13 @@ namespace IRaCIS.Core.Application.Service
IRepository<DoctorDictionary> _doctorDictionaryRepository,
IRepository<Enroll> _enrollRepository,
IRepository<Attachment> _attachmentRepository,
IRepository<EmailNoticeConfig> _emailNoticeConfigrepository,
IRepository<DoctorCriterionFile> _doctorCriterionFileRepository,
IRepository<Trial> _trialRepository,
IRepository<Vacation> _vacationRepository,
IOptionsMonitor<SystemEmailSendConfig> systemEmailConfig,
IRepository<TrialPaymentPrice> _trialExtRepository, IMapper _mapper, IUserInfo _userInfo, IStringLocalizer _localizer) : BaseService, IDoctorService
{
private readonly SystemEmailSendConfig _systemEmailConfig = systemEmailConfig.CurrentValue;
@ -242,44 +236,6 @@ namespace IRaCIS.Core.Application.Service
return doctorBasicInfo;
}
/// <summary>
/// 发送邮件
/// </summary>
/// <param name="inDto"></param>
/// <returns></returns>
[HttpPost]
public async Task<bool> SendEmail(SendEmailInDto inDto)
{
var messageToSend = new MimeMessage();
//发件地址
messageToSend.From.Add(new MailboxAddress(_systemEmailConfig.FromName, _systemEmailConfig.FromEmail));
messageToSend.To.Add(new MailboxAddress(String.Empty, inDto.Email));
Func<(string topicStr, string htmlBodyStr), (string topicStr, string htmlBodyStr)> emailConfigFunc = input =>
{
;
var topicStr = string.Format(input.topicStr,string.Empty);
var htmlBodyStr = string.Format(
CommonEmailHelper.ReplaceCompanyName(_systemEmailConfig, input.htmlBodyStr),
_systemEmailConfig.SiteUrl.Replace("login",string.Empty)+inDto.Url
);
return (topicStr, htmlBodyStr);
};
await CommonEmailHelper.GetEmailSubejctAndHtmlInfoAndBuildAsync(_emailNoticeConfigrepository,
EmailBusinessScenario.Reviewer_CV_Collection,
messageToSend, emailConfigFunc);
await SendEmailHelper.SendEmailAsync(messageToSend, _systemEmailConfig);
return true;
}
/// <summary>
/// 修改支付方式

View File

@ -236,12 +236,7 @@ namespace IRaCIS.Core.Domain.Share
/// <summary>
/// PD确认-加急医学反馈回复
/// </summary>
PDVerification_ExpeditedMedicalQCResponse = 56,
/// <summary>
/// 阅片人简历采集
/// </summary>
Reviewer_CV_Collection = 57,
PDVerification_ExpeditedMedicalQCResponse = 56
}