@@ -7,6 +7,7 @@
|
||||
using IRaCIS.Core.Application.Helper;
|
||||
using IRaCIS.Core.Application.Interfaces;
|
||||
using IRaCIS.Core.Application.ViewModel;
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace IRaCIS.Core.Application.Service
|
||||
@@ -15,7 +16,8 @@ namespace IRaCIS.Core.Application.Service
|
||||
/// 系统模板文档配置表
|
||||
/// </summary>
|
||||
[ApiExplorerSettings(GroupName = "Common")]
|
||||
public class CommonDocumentService(IRepository<CommonDocument> _commonDocumentRepository) : BaseService, ICommonDocumentService
|
||||
public class CommonDocumentService(IRepository<CommonDocument> _commonDocumentRepository,
|
||||
IMapper _mapper, IUserInfo _userInfo, IStringLocalizer _localizer, IWebHostEnvironment _hostEnvironment) : BaseService, ICommonDocumentService
|
||||
{
|
||||
|
||||
[HttpPost]
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace IRaCIS.Core.Application.Service.Common
|
||||
/// </summary>
|
||||
/// <param name="_dictionaryRepository"></param>
|
||||
[ApiExplorerSettings(GroupName = "Common")]
|
||||
public class DevelopService(IRepository<Dictionary> _dictionaryRepository) : BaseService
|
||||
public class DevelopService(IRepository<Dictionary> _dictionaryRepository, IMapper _mapper, IUserInfo _userInfo, IStringLocalizer _localizer) : BaseService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据配置的字典名生成后端枚举
|
||||
|
||||
@@ -23,8 +23,7 @@ namespace IRaCIS.Core.Application.Service
|
||||
IRepository<ReadingSystemCriterionDictionary> _readingSystemCriterionDictionaryRepository,
|
||||
IRepository<ReadingSystemCriterionDictionary> _readingCriterionDictionaryRepository,
|
||||
IRepository<ReadingQuestionCriterionSystem> _readingQuestionCriterionSystem,
|
||||
IRepository<ReadingQuestionCriterionTrial> _readingQuestionCriterionTrial
|
||||
) : BaseService, IDictionaryService
|
||||
IRepository<ReadingQuestionCriterionTrial> _readingQuestionCriterionTrial, IMapper _mapper, IUserInfo _userInfo, IStringLocalizer _localizer) : BaseService, IDictionaryService
|
||||
{
|
||||
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace IRaCIS.Core.Application.Contracts
|
||||
/// </summary>
|
||||
[ApiExplorerSettings(GroupName = "Common")]
|
||||
public class EmailNoticeConfigService(IRepository<EmailNoticeConfig> _emailNoticeConfigrepository,
|
||||
IRepository<EmailNoticeUserType> _emailNoticeUserTypeRepository) : BaseService, IEmailNoticeConfigService
|
||||
IRepository<EmailNoticeUserType> _emailNoticeUserTypeRepository, IMapper _mapper, IUserInfo _userInfo, IStringLocalizer _localizer) : BaseService, IEmailNoticeConfigService
|
||||
{
|
||||
|
||||
[HttpPost]
|
||||
|
||||
@@ -20,7 +20,7 @@ using System.Globalization;
|
||||
namespace IRaCIS.Core.Application.Service;
|
||||
|
||||
[ApiExplorerSettings(GroupName = "Common")]
|
||||
public class EventStoreRecordService(IRepository<EventStoreRecord> _eventStoreRecordRepository, IMediator _mediator,IPublishEndpoint _publishEndpoint) : BaseService
|
||||
public class EventStoreRecordService(IRepository<EventStoreRecord> _eventStoreRecordRepository, IMediator _mediator,IPublishEndpoint _publishEndpoint, IMapper _mapper, IUserInfo _userInfo, IStringLocalizer _localizer) : BaseService
|
||||
{
|
||||
/// <summary>
|
||||
/// 邮件事件消息列表
|
||||
|
||||
@@ -8,6 +8,7 @@ using IRaCIS.Core.Domain.Models;
|
||||
using IRaCIS.Core.Domain.Share;
|
||||
using IRaCIS.Core.Infra.EFCore.Common;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using NPOI.XSSF.UserModel;
|
||||
using System.Globalization;
|
||||
@@ -30,7 +31,8 @@ namespace IRaCIS.Core.Application.Service.Common
|
||||
IRepository<SystemDocConfirmedUser> _systemDocConfirmedUserRepository,
|
||||
IRepository<TrialDocNeedConfirmedUserType> _trialDocNeedConfirmedUserTypeRepository,
|
||||
IRepository<TrialDocConfirmedUser> _trialDocConfirmedUserRepository,
|
||||
IRepository<Subject> _subjectRepository) : BaseService
|
||||
IRepository<Subject> _subjectRepository,
|
||||
IMapper _mapper, IUserInfo _userInfo, IStringLocalizer _localizer, IWebHostEnvironment _hostEnvironment) : BaseService
|
||||
{
|
||||
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace IRaCIS.Core.Application.Service
|
||||
/// ExploreRecommendService
|
||||
/// </summary>
|
||||
[ApiExplorerSettings(GroupName = "Common")]
|
||||
public class ExploreRecommendService(IRepository<ExploreRecommend> _exploreRecommendRepository) : BaseService, IExploreRecommendService
|
||||
public class ExploreRecommendService(IRepository<ExploreRecommend> _exploreRecommendRepository, IMapper _mapper, IUserInfo _userInfo, IStringLocalizer _localizer) : BaseService, IExploreRecommendService
|
||||
{
|
||||
|
||||
|
||||
|
||||
@@ -17,7 +17,8 @@ namespace IRaCIS.Core.Application.Service
|
||||
/// InternationalizationService
|
||||
/// </summary>
|
||||
[ApiExplorerSettings(GroupName = "Common")]
|
||||
public class InternationalizationService(IRepository<Internationalization> _internationalizationRepository) : BaseService, IInternationalizationService
|
||||
public class InternationalizationService(IRepository<Internationalization> _internationalizationRepository,
|
||||
IMapper _mapper, IUserInfo _userInfo, IStringLocalizer _localizer, IFusionCache _fusionCache) : BaseService, IInternationalizationService
|
||||
{
|
||||
|
||||
|
||||
|
||||
@@ -39,8 +39,7 @@ namespace IRaCIS.Core.Application.Service
|
||||
Task UserFeedBackMail(Guid feedBackId);
|
||||
}
|
||||
|
||||
public class MailVerificationService(
|
||||
IRepository<VerificationCode> _verificationCodeRepository,
|
||||
public class MailVerificationService(IRepository<VerificationCode> _verificationCodeRepository,
|
||||
IRepository<SystemBasicData> _systemBasicDatarepository,
|
||||
IRepository<VisitTask> _visitTaskRepository,
|
||||
IRepository<TrialSite> _trialSiteRepository,
|
||||
@@ -54,7 +53,7 @@ namespace IRaCIS.Core.Application.Service
|
||||
IRepository<Dictionary> _dictionaryRepository,
|
||||
IRepository<EmailNoticeConfig> _emailNoticeConfigrepository,
|
||||
IOptionsMonitor<SystemEmailSendConfig> systemEmailConfig,
|
||||
IDistributedLockProvider _distributedLockProvider) : BaseService, IMailVerificationService
|
||||
IDistributedLockProvider _distributedLockProvider, IMapper _mapper, IUserInfo _userInfo, IStringLocalizer _localizer) : BaseService, IMailVerificationService
|
||||
{
|
||||
private readonly SystemEmailSendConfig _systemEmailConfig = systemEmailConfig.CurrentValue;
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace IRaCIS.Core.Application.Service
|
||||
/// PublishLogService
|
||||
/// </summary>
|
||||
[ApiExplorerSettings(GroupName = "Common")]
|
||||
public class PublishLogService(IRepository<PublishLog> _publishLogRepository) : BaseService, IPublishLogService
|
||||
public class PublishLogService(IRepository<PublishLog> _publishLogRepository, IMapper _mapper, IUserInfo _userInfo, IStringLocalizer _localizer) : BaseService, IPublishLogService
|
||||
{
|
||||
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace IRaCIS.Core.Application.Services
|
||||
/// SystemBasicDataService
|
||||
/// </summary>
|
||||
[ApiExplorerSettings(GroupName = "Common")]
|
||||
public class SystemBasicDataService(IRepository<SystemBasicData> _systemBasicDataRepository) : BaseService, ISystemBasicDataService
|
||||
public class SystemBasicDataService(IRepository<SystemBasicData> _systemBasicDataRepository, IMapper _mapper, IUserInfo _userInfo, IStringLocalizer _localizer) : BaseService, ISystemBasicDataService
|
||||
{
|
||||
|
||||
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
using IRaCIS.Core.Application.Helper;
|
||||
using IRaCIS.Core.Infrastructure;
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Newtonsoft.Json.Linq;
|
||||
|
||||
namespace IRaCIS.Core.Application.Service.Common
|
||||
{
|
||||
[ApiExplorerSettings(GroupName = "Common")]
|
||||
public class SystemMonitor : BaseService
|
||||
public class SystemMonitor(IStringLocalizer _localizer, IWebHostEnvironment _hostEnvironment) : BaseService
|
||||
{
|
||||
|
||||
public void GetDiskInfo()
|
||||
|
||||
Reference in New Issue
Block a user