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,6 +1,6 @@
using Microsoft.Extensions.Logging;
using PARR.Core.Repositories.Interfaces.Schedule;
using PARR.DAL.DomainModels;
using PARR.DAL.Services.Interfaces;
using PARR.Domain.Enums;
using System.Text.Json;
@@ -8,7 +8,7 @@ namespace PARR.DAL.NextRunServices.Subservices
{
internal class EsppScheduleTransformService : IEsppScheduleTransformService
{
private readonly IEsppSchTypeConfigService esppSchTypeConfigService;
private readonly IEsppSchTypeConfigRepository esppSchTypeConfigService;
private readonly ILogger<EsppScheduleTransformService> logger;
private static readonly Dictionary<string, int> monthDict = new Dictionary<string, int>()
@@ -50,7 +50,7 @@ namespace PARR.DAL.NextRunServices.Subservices
public EsppScheduleTransformService(
ILogger<EsppScheduleTransformService> logger,
IEsppSchTypeConfigService esppSchTypeConfigService
IEsppSchTypeConfigRepository esppSchTypeConfigService
)
{
this.esppSchTypeConfigService = esppSchTypeConfigService;

View File

@@ -1,7 +1,7 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Logging;
using PARR.Core.Repositories.Interfaces;
using PARR.DAL.NextRunServices.Models;
using PARR.DAL.Services.Interfaces;
namespace PARR.DAL.NextRunServices.Subservices
{
@@ -13,7 +13,7 @@ namespace PARR.DAL.NextRunServices.Subservices
internal class TemplateDistributor : ITemplateDistributor
{
private readonly ILogger<TemplateDistributor> logger;
private readonly IWeekendDayService weekendDayService;
private readonly IWeekendDayRepository weekendDayService;
/// <summary>
/// Смещение nextRun на несколько лет вперед, если не смог его рассчитать
@@ -25,7 +25,7 @@ namespace PARR.DAL.NextRunServices.Subservices
/// </summary>
private const int maxPeriodExpansions = 2;
public TemplateDistributor(ILogger<TemplateDistributor> logger, IWeekendDayService weekendDayService)
public TemplateDistributor(ILogger<TemplateDistributor> logger, IWeekendDayRepository weekendDayService)
{
this.logger = logger;
this.weekendDayService = weekendDayService;