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

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

View File

@@ -3,7 +3,7 @@ using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using PARR.Core.Common.Interfaces;
using PARR.Core.Common.Interfaces.RabbitServices;
using PARR.DAL.Services.Interfaces.Job;
using PARR.Core.Repositories.Interfaces.Job;
using PARR.Domain.Common.Rabbit.Messages;
using PARR.NextRun.Services;
using PARR.NextRun.Settings;
@@ -93,7 +93,7 @@ namespace PARR.NextRun
{
using (var scope = serviceProvider.CreateScope())
{
var jobGroupService = scope.ServiceProvider.GetRequiredService<IJobGroupService>();
var jobGroupService = scope.ServiceProvider.GetRequiredService<IJobGroupRepository>();
return await jobGroupService.Get().AnyAsync(t => t.Id == jobGroupId);
}

View File

@@ -1,4 +1,4 @@
using PARR.DAL.Models;
using PARR.Domain.Entities;
using PARR.Domain.Entities.Base.History;
namespace PARR.NextRun.Services

View File

@@ -1,8 +1,8 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Logging;
using PARR.DAL.Models;
using PARR.Core.Repositories.Interfaces;
using PARR.DAL.NextRunServices;
using PARR.DAL.Services.Interfaces;
using PARR.Domain.Entities;
using PARR.Domain.Entities.Base.History;
using PARR.Domain.Enums;
@@ -11,15 +11,15 @@ namespace PARR.NextRun.Services
internal class NextRunUpdateService : INextRunUpdateService
{
private readonly ILogger<NextRunUpdateService> logger;
private readonly ITemplateService templateService;
private readonly ITemplateRepository templateService;
private readonly INextRunService nextRunService;
private readonly IRobotConfigurationService robotConfigurationService;
private readonly IRobotConfigurationRepository robotConfigurationService;
public NextRunUpdateService(
ILogger<NextRunUpdateService> logger,
ITemplateService templateService,
ITemplateRepository templateService,
INextRunService nextRunService,
IRobotConfigurationService robotConfigurationService
IRobotConfigurationRepository robotConfigurationService
)
{
this.logger = logger;