构造函数优化
continuous-integration/drone/push Build is passing

This commit is contained in:
hang
2024-08-22 21:37:56 +08:00
parent 47ec4a5e7e
commit 22b1a839ba
102 changed files with 1111 additions and 2866 deletions
@@ -5,24 +5,13 @@ using Microsoft.AspNetCore.Mvc;
namespace IRaCIS.Application.Services
{
[ApiExplorerSettings(GroupName = "Reviewer")]
public class TrialExperienceService : BaseService, ITrialExperienceService
public class TrialExperienceService(
IRepository<TrialExperience> _trialExperienceRepository,
IRepository<Doctor> _doctorRepository,
IRepository<Attachment> _attachmentRepository
) : BaseService, ITrialExperienceService
{
private readonly IRepository<TrialExperience> _trialExperienceRepository;
private readonly IRepository<Doctor> _doctorRepository;
private readonly IRepository<Attachment> _attachmentRepository;
private readonly IRepository<TrialExperienceCriteria> _trialExperienceCriteriaRepository;
public TrialExperienceService(IRepository<TrialExperience> trialExperienceRepository, IRepository<Doctor> doctorRepository, IRepository<Attachment> attachmentRepository,
IRepository<TrialExperienceCriteria> trialExperienceCriteriaRepository)
{
_trialExperienceRepository = trialExperienceRepository;
_doctorRepository = doctorRepository;
_attachmentRepository = attachmentRepository;
_trialExperienceCriteriaRepository = trialExperienceCriteriaRepository;
}
/// <summary>