feat: Из dal перенесены все модели в Domain. Из dal переименованы service в repository, вынесены в Core.

This commit is contained in:
Mikhail Trubnikov
2026-04-30 10:35:31 +10:00
parent f1ea69da1f
commit eb78dfd6a8
356 changed files with 1817 additions and 1985 deletions

View File

@@ -1,23 +1,23 @@
// ValidatorService.cs
using Microsoft.EntityFrameworkCore;
using PARR.DAL.Services.Interfaces;
using PARR.DAL.Services.Interfaces.Job;
using PARR.DAL.Services.Interfaces.Unit;
using PARR.Core.Repositories.Interfaces;
using PARR.Core.Repositories.Interfaces.Job;
using PARR.Core.Repositories.Interfaces.Unit;
namespace PARR.TemplateGeneratorWorker.Services
{
internal class ValidatorService : IValidatorService
{
private readonly ILogger<ValidatorService> logger;
private readonly IJobService jobService;
private readonly IUnitService unitService;
private readonly ITemplateService templateService;
private readonly IJobRepository jobService;
private readonly IUnitRepository unitService;
private readonly ITemplateRepository templateService;
public ValidatorService(
ILogger<ValidatorService> logger,
IJobService jobService,
IUnitService unitService,
ITemplateService templateService
IJobRepository jobService,
IUnitRepository unitService,
ITemplateRepository templateService
)
{
this.logger = logger;

View File

@@ -1,11 +1,11 @@
using Microsoft.EntityFrameworkCore;
using PARR.Core.Common.Interfaces;
using PARR.Core.Repositories.Interfaces;
using PARR.Core.Repositories.Interfaces.Job;
using PARR.DAL.DomainServices.Shortcodes;
using PARR.DAL.Models;
using PARR.DAL.NextRunServices;
using PARR.DAL.Services.Interfaces;
using PARR.DAL.Services.Interfaces.Job;
using PARR.Domain.Common.Rabbit.Messages;
using PARR.Domain.Entities;
using PARR.Domain.Entities.Base.History;
using PARR.Domain.Enums;
using PARR.TemplateGeneratorWorker.Services;
@@ -17,9 +17,9 @@ namespace PARR.TemplateGeneratorWorker
private readonly ILogger<TemplateGenerator> logger;
private readonly ITransformService transformService;
private readonly IValidatorService validatorService;
private readonly IJobService jobService;
private readonly IJobRepository jobService;
private readonly IShortcodesService shortcodesService;
private readonly ITemplateService templateService;
private readonly ITemplateRepository templateService;
private readonly INextRunService nextRunService;
//private readonly INextRunService nextRunService;
@@ -30,9 +30,9 @@ namespace PARR.TemplateGeneratorWorker
ILogger<TemplateGenerator> logger,
ITransformService transformService,
IValidatorService validatorService,
IJobService jobService,
IJobRepository jobService,
IShortcodesService shortcodesService,
ITemplateService templateService,
ITemplateRepository templateService,
INextRunService nextRunService
//INextRunService nextRunService
//IEsppScheduleTransformService esppScheduleTransformService

View File

@@ -10,7 +10,7 @@ namespace PARR.TemplateGeneratorWorker
{
public static void InstallTemplateGeneratorWorkerSerivces(this IServiceCollection services, IConfiguration configuration)
{
services.InstallDalServices(configuration);
services.AddDalServices(configuration);
services.AddCoreServices(configuration);
services.AddInfrastructureServices(configuration);