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.AIHITMainSyncer
{ {
public static void InstallAihitMainSyncerServices(this IServiceCollection services, IConfiguration configuration) public static void InstallAihitMainSyncerServices(this IServiceCollection services, IConfiguration configuration)
{ {
services.InstallDalServices(configuration); services.AddDalServices(configuration);
services.AddCoreServices(configuration); services.AddCoreServices(configuration);
services.AddInfrastructureServices(configuration); services.AddInfrastructureServices(configuration);

View File

@@ -3,9 +3,9 @@ using Microsoft.Extensions.Logging;
using Newtonsoft.Json.Linq; using Newtonsoft.Json.Linq;
using PARR.AIHITMainSyncer.Settings; using PARR.AIHITMainSyncer.Settings;
using PARR.Core.Common.Interfaces; using PARR.Core.Common.Interfaces;
using PARR.DAL.Models.Unit; using PARR.Core.Repositories.Interfaces.Unit;
using PARR.DAL.Services.Interfaces.Unit;
using PARR.Domain.Common.Rabbit.Messages; using PARR.Domain.Common.Rabbit.Messages;
using PARR.Domain.Entities.Unit;
namespace PARR.AIHITMainSyncer.Services namespace PARR.AIHITMainSyncer.Services
{ {
@@ -13,17 +13,17 @@ namespace PARR.AIHITMainSyncer.Services
{ {
private readonly ILogger<SyncerService> logger; private readonly ILogger<SyncerService> logger;
private readonly ITransformService transformService; private readonly ITransformService transformService;
private readonly IUnitService unitService; private readonly IUnitRepository unitService;
private readonly IUnitFieldService unitFieldService; private readonly IUnitFieldRepository unitFieldService;
private readonly IUnitFieldValueService unitFieldValueService; private readonly IUnitFieldValueRepository unitFieldValueService;
private readonly FieldValueReplacementsSettings fieldValueReplacementsSettings; private readonly FieldValueReplacementsSettings fieldValueReplacementsSettings;
public SyncerService( public SyncerService(
ILogger<SyncerService> logger, ILogger<SyncerService> logger,
ITransformService transformService, ITransformService transformService,
IUnitService unitService, IUnitRepository unitService,
IUnitFieldService unitFieldService, IUnitFieldRepository unitFieldService,
IUnitFieldValueService unitFieldValueService, IUnitFieldValueRepository unitFieldValueService,
FieldValueReplacementsSettings fieldValueReplacementsSettings FieldValueReplacementsSettings fieldValueReplacementsSettings
) )
{ {

View File

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

View File

@@ -3,20 +3,20 @@ using Microsoft.Extensions.Logging;
using PARR.AIHITRelationshipsSyncer.Models; using PARR.AIHITRelationshipsSyncer.Models;
using PARR.AIHITRelationshipsSyncer.Services.Interfaces; using PARR.AIHITRelationshipsSyncer.Services.Interfaces;
using PARR.AIHITRelationshipsSyncer.Settings; using PARR.AIHITRelationshipsSyncer.Settings;
using PARR.DAL.Models.Unit; using PARR.Core.Repositories.Interfaces.Unit;
using PARR.DAL.Services.Interfaces.Unit; using PARR.Domain.Entities.Unit;
namespace PARR.AIHITRelationshipsSyncer.Services.Implementations namespace PARR.AIHITRelationshipsSyncer.Services.Implementations
{ {
internal class RelationshipsSyncService : IRelationshipsSyncService internal class RelationshipsSyncService : IRelationshipsSyncService
{ {
private readonly ILogger<RelationshipsSyncService> logger; private readonly ILogger<RelationshipsSyncService> logger;
private readonly IUnitService unitService; private readonly IUnitRepository unitService;
private readonly WorkerSettings workerSettings; private readonly WorkerSettings workerSettings;
public RelationshipsSyncService( public RelationshipsSyncService(
ILogger<RelationshipsSyncService> logger, ILogger<RelationshipsSyncService> logger,
IUnitService unitService, IUnitRepository unitService,
WorkerSettings workerSettings WorkerSettings workerSettings
) )
{ {

View File

@@ -11,11 +11,11 @@ using PARR.API.Contracts.V1.Responses.Base;
using PARR.API.Controllers.V1.Base; using PARR.API.Controllers.V1.Base;
using PARR.API.Extensions; using PARR.API.Extensions;
using PARR.API.Services.Interfaces; using PARR.API.Services.Interfaces;
using PARR.DAL.Models; using PARR.Core.Repositories.Interfaces;
using PARR.DAL.Services.Interfaces; using PARR.Core.Repositories.Interfaces.Unit;
using PARR.DAL.Services.Interfaces.Unit;
using PARR.Domain.Common.Pagination; using PARR.Domain.Common.Pagination;
using PARR.Domain.Common.Roles; using PARR.Domain.Common.Roles;
using PARR.Domain.Entities;
namespace PARR.API.Controllers.V1 namespace PARR.API.Controllers.V1
{ {
@@ -25,22 +25,22 @@ namespace PARR.API.Controllers.V1
public class AgentHistoryController : BaseApiController public class AgentHistoryController : BaseApiController
{ {
private readonly IValidator<AgentHistoryRequest> validator; private readonly IValidator<AgentHistoryRequest> validator;
private readonly IAgentHistoryService agentHistoryService; private readonly IAgentHistoryRepository agentHistoryService;
private readonly IUriService uriService; private readonly IUriService uriService;
private readonly IMapper mapper; private readonly IMapper mapper;
private readonly ITemplateService templateService; private readonly ITemplateRepository templateService;
private readonly IClientService clientService; private readonly IClientService clientService;
private readonly IUnitService unitService; private readonly IUnitRepository unitService;
private readonly ILogger<AgentHistoryController> logger; private readonly ILogger<AgentHistoryController> logger;
public AgentHistoryController( public AgentHistoryController(
IValidator<AgentHistoryRequest> validator, IValidator<AgentHistoryRequest> validator,
IAgentHistoryService agentHistoryService, IAgentHistoryRepository agentHistoryService,
IUriService uriService, IUriService uriService,
IMapper mapper, IMapper mapper,
ITemplateService templateService, ITemplateRepository templateService,
IClientService clientService, IClientService clientService,
IUnitService unitService, IUnitRepository unitService,
ILogger<AgentHistoryController> logger ILogger<AgentHistoryController> logger
) )
{ {

View File

@@ -4,8 +4,8 @@ using PARR.API.Contracts.V1;
using PARR.API.Contracts.V1.Requests.Queries; using PARR.API.Contracts.V1.Requests.Queries;
using PARR.API.Controllers.V1.Base; using PARR.API.Controllers.V1.Base;
using PARR.API.Services.Interfaces; using PARR.API.Services.Interfaces;
using PARR.DAL.Services.Interfaces; using PARR.Core.Repositories.Interfaces;
using PARR.DAL.Services.Interfaces.Unit; using PARR.Core.Repositories.Interfaces.Unit;
using PARR.Domain.Common.Roles; using PARR.Domain.Common.Roles;
namespace PARR.API.Controllers.V1 namespace PARR.API.Controllers.V1
@@ -17,15 +17,15 @@ namespace PARR.API.Controllers.V1
public class AgentTaskController : BaseApiController public class AgentTaskController : BaseApiController
{ {
private readonly IClientService clientService; private readonly IClientService clientService;
private readonly ITemplateService templateService; private readonly ITemplateRepository templateService;
private readonly IUnitService unitService; private readonly IUnitRepository unitService;
//private readonly IEsppScheduleTransformService esppScheduleTransformService; //private readonly IEsppScheduleTransformService esppScheduleTransformService;
private readonly ILogger<AgentTaskController> logger; private readonly ILogger<AgentTaskController> logger;
public AgentTaskController( public AgentTaskController(
IClientService clientService, IClientService clientService,
ITemplateService templateService, ITemplateRepository templateService,
IUnitService unitService, IUnitRepository unitService,
//IEsppScheduleTransformService esppScheduleTransformService, //IEsppScheduleTransformService esppScheduleTransformService,
ILogger<AgentTaskController> logger ILogger<AgentTaskController> logger
) )

View File

@@ -6,7 +6,7 @@ using PARR.API.Contracts.V1;
using PARR.API.Contracts.V1.Responses; using PARR.API.Contracts.V1.Responses;
using PARR.API.Contracts.V1.Responses.Base; using PARR.API.Contracts.V1.Responses.Base;
using PARR.API.Controllers.V1.Base; using PARR.API.Controllers.V1.Base;
using PARR.DAL.Services.Interfaces; using PARR.Core.Repositories.Interfaces;
using PARR.Domain.Common.Roles; using PARR.Domain.Common.Roles;
namespace PARR.API.Controllers.V1 namespace PARR.API.Controllers.V1
@@ -17,11 +17,11 @@ namespace PARR.API.Controllers.V1
[Authorize(Roles = ParrRoles.Administrator.Role)] [Authorize(Roles = ParrRoles.Administrator.Role)]
public class DistributionPeriodController : BaseApiController public class DistributionPeriodController : BaseApiController
{ {
private readonly IDistributionPeriodService distributionPeriodService; private readonly IDistributionPeriodRepository distributionPeriodService;
private readonly IMapper mapper; private readonly IMapper mapper;
public DistributionPeriodController( public DistributionPeriodController(
IDistributionPeriodService distributionPeriodService, IDistributionPeriodRepository distributionPeriodService,
IMapper mapper IMapper mapper
) )
{ {

View File

@@ -6,7 +6,7 @@ using PARR.API.Contracts.V1;
using PARR.API.Contracts.V1.Responses; using PARR.API.Contracts.V1.Responses;
using PARR.API.Contracts.V1.Responses.Base; using PARR.API.Contracts.V1.Responses.Base;
using PARR.API.Controllers.V1.Base; using PARR.API.Controllers.V1.Base;
using PARR.DAL.Services.Interfaces; using PARR.Core.Repositories.Interfaces.Schedule;
using PARR.Domain.Common.Roles; using PARR.Domain.Common.Roles;
namespace PARR.API.Controllers.V1 namespace PARR.API.Controllers.V1
@@ -18,11 +18,11 @@ namespace PARR.API.Controllers.V1
public class EsppScheduleTypeScheduleController : BaseApiController public class EsppScheduleTypeScheduleController : BaseApiController
{ {
private readonly IMapper mapper; private readonly IMapper mapper;
private readonly IEsppSchTypeScheduleService esppSchTypeScheduleService; private readonly IEsppSchTypeScheduleRepository esppSchTypeScheduleService;
public EsppScheduleTypeScheduleController( public EsppScheduleTypeScheduleController(
IMapper mapper, IMapper mapper,
IEsppSchTypeScheduleService esppSchTypeScheduleService IEsppSchTypeScheduleRepository esppSchTypeScheduleService
) )
{ {
this.mapper = mapper; this.mapper = mapper;

View File

@@ -1,16 +1,5 @@
using AutoMapper; using Microsoft.AspNetCore.Authorization;
using FluentValidation;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using PARR.API.Contracts.V1;
using PARR.API.Contracts.V1.Requests;
using PARR.API.Contracts.V1.Responses;
using PARR.API.Contracts.V1.Responses.Base;
using PARR.API.Controllers.V1.Base; using PARR.API.Controllers.V1.Base;
using PARR.API.Services.Interfaces;
using PARR.DAL.Models;
using PARR.DAL.Services.Interfaces;
using PARR.Domain.Common.Roles; using PARR.Domain.Common.Roles;
namespace PARR.API.Controllers.V1 namespace PARR.API.Controllers.V1

View File

@@ -12,20 +12,19 @@ using PARR.API.Controllers.V1.Base;
using PARR.API.Extensions; using PARR.API.Extensions;
using PARR.API.Services.Interfaces; using PARR.API.Services.Interfaces;
using PARR.API.Settings; using PARR.API.Settings;
using PARR.BLL.Helpers;
using PARR.Core.Common.Helpers; using PARR.Core.Common.Helpers;
using PARR.Core.Common.Interfaces.RabbitServices; using PARR.Core.Common.Interfaces.RabbitServices;
using PARR.Core.Repositories.Interfaces;
using PARR.Core.Repositories.Interfaces.Job;
using PARR.Core.Repositories.Interfaces.Unit;
using PARR.DAL.DomainServices.Interfaces; using PARR.DAL.DomainServices.Interfaces;
using PARR.DAL.DomainServices.UnitFilterService; using PARR.DAL.DomainServices.UnitFilterService;
using PARR.DAL.Extensions; using PARR.DAL.Extensions;
using PARR.DAL.Models.Job;
using PARR.DAL.Services.Interfaces;
using PARR.DAL.Services.Interfaces.Job;
using PARR.DAL.Services.Interfaces.Unit;
using PARR.Domain.Common.Pagination; using PARR.Domain.Common.Pagination;
using PARR.Domain.Common.Rabbit.Messages; using PARR.Domain.Common.Rabbit.Messages;
using PARR.Domain.Common.Roles; using PARR.Domain.Common.Roles;
using PARR.Domain.Entities.Base.History; using PARR.Domain.Entities.Base.History;
using PARR.Domain.Entities.Job;
using PARR.Domain.Enums; using PARR.Domain.Enums;
namespace PARR.API.Controllers.V1 namespace PARR.API.Controllers.V1
@@ -39,29 +38,29 @@ namespace PARR.API.Controllers.V1
private readonly ILogger<JobController> logger; private readonly ILogger<JobController> logger;
private readonly IMapper mapper; private readonly IMapper mapper;
private readonly IUriService uriService; private readonly IUriService uriService;
private readonly IJobService jobService; private readonly IJobRepository jobService;
private readonly ITemplateService templateService; private readonly ITemplateRepository templateService;
private readonly IValidator<JobRequest> jobValidator; private readonly IValidator<JobRequest> jobValidator;
private readonly IRabbitService mqService; private readonly IRabbitService mqService;
private readonly MqSettings mqSettings; private readonly MqSettings mqSettings;
private readonly IClientService clientService; private readonly IClientService clientService;
private readonly IJobAutoControlService jobAutoControlService; private readonly IJobAutoControlRepository jobAutoControlService;
private readonly IMatchingStatusService matchingStatusService; private readonly IMatchingStatusService matchingStatusService;
public JobController( public JobController(
ILogger<JobController> logger, ILogger<JobController> logger,
IMapper mapper, IMapper mapper,
IUriService uriService, IUriService uriService,
IJobService jobService, IJobRepository jobService,
ITemplateService templateService, ITemplateRepository templateService,
IJobGroupService jobGroupService, IJobGroupRepository jobGroupService,
IValidator<JobRequest> jobValidator, IValidator<JobRequest> jobValidator,
IUnitFilterService unitFilterService, IUnitFilterService unitFilterService,
IUnitService unitService, IUnitRepository unitService,
IRabbitService mqService, IRabbitService mqService,
MqSettings mqSettings, MqSettings mqSettings,
IClientService clientService, IClientService clientService,
IJobAutoControlService jobAutoControlService, IJobAutoControlRepository jobAutoControlService,
IMatchingStatusService matchingStatusService IMatchingStatusService matchingStatusService
) )
{ {

View File

@@ -12,19 +12,17 @@ using PARR.API.Controllers.V1.Base;
using PARR.API.Extensions; using PARR.API.Extensions;
using PARR.API.Services.Interfaces; using PARR.API.Services.Interfaces;
using PARR.API.Settings; using PARR.API.Settings;
using PARR.BLL.Helpers;
using PARR.Core.Common.Helpers; using PARR.Core.Common.Helpers;
using PARR.Core.Common.Interfaces.RabbitServices; using PARR.Core.Common.Interfaces.RabbitServices;
using PARR.Core.Repositories.Interfaces.Job;
using PARR.Core.Repositories.Interfaces.Schedule;
using PARR.DAL.DomainServices.Interfaces; using PARR.DAL.DomainServices.Interfaces;
using PARR.DAL.Models;
using PARR.DAL.Models.Job;
using PARR.DAL.Services.Interfaces;
using PARR.DAL.Services.Interfaces.Job;
using PARR.DAL.Services.Interfaces.Schedule;
using PARR.Domain.Common.Pagination; using PARR.Domain.Common.Pagination;
using PARR.Domain.Common.Rabbit.Messages; using PARR.Domain.Common.Rabbit.Messages;
using PARR.Domain.Common.Roles; using PARR.Domain.Common.Roles;
using PARR.Domain.Entities.Base.History; using PARR.Domain.Entities.Base.History;
using PARR.Domain.Entities.Job;
using PARR.Domain.Entities.Schedule;
using PARR.Domain.Enums; using PARR.Domain.Enums;
namespace PARR.API.Controllers.V1 namespace PARR.API.Controllers.V1
@@ -38,13 +36,13 @@ namespace PARR.API.Controllers.V1
private readonly ILogger<JobController> logger; private readonly ILogger<JobController> logger;
private readonly IMapper mapper; private readonly IMapper mapper;
private readonly IUriService uriService; private readonly IUriService uriService;
private readonly IJobGroupService groupService; private readonly IJobGroupRepository groupService;
private readonly IJobService jobService; private readonly IJobRepository jobService;
private readonly IEsppSchTypeConfigService esppConfigService; private readonly IEsppSchTypeConfigRepository esppConfigService;
private readonly IValidator<JobGroupRequest> validator; private readonly IValidator<JobGroupRequest> validator;
private readonly IJobGroupTypeService jobGroupTypeService; private readonly IJobGroupTypeRepository jobGroupTypeService;
private readonly IMatchingStatusService matchingStatusService; private readonly IMatchingStatusService matchingStatusService;
private readonly IScheduleResponseAreaTimeOffsetService scheduleResponseAreaTimeOffsetService; private readonly IScheduleResponseAreaTimeOffsetRepository scheduleResponseAreaTimeOffsetService;
private readonly IRabbitService mqService; private readonly IRabbitService mqService;
private readonly MqSettings mqSettings; private readonly MqSettings mqSettings;
@@ -52,13 +50,13 @@ namespace PARR.API.Controllers.V1
ILogger<JobController> logger, ILogger<JobController> logger,
IMapper mapper, IMapper mapper,
IUriService uriService, IUriService uriService,
IJobGroupService groupService, IJobGroupRepository groupService,
IJobService jobService, IJobRepository jobService,
IEsppSchTypeConfigService esppConfigService, IEsppSchTypeConfigRepository esppConfigService,
IValidator<JobGroupRequest> validator, IValidator<JobGroupRequest> validator,
IJobGroupTypeService jobGroupTypeService, IJobGroupTypeRepository jobGroupTypeService,
IMatchingStatusService matchingStatusService, IMatchingStatusService matchingStatusService,
IScheduleResponseAreaTimeOffsetService scheduleResponseAreaTimeOffsetService, IScheduleResponseAreaTimeOffsetRepository scheduleResponseAreaTimeOffsetService,
IRabbitService mqService, IRabbitService mqService,
MqSettings mqSettings MqSettings mqSettings
) )

View File

@@ -6,7 +6,7 @@ using PARR.API.Contracts.V1;
using PARR.API.Contracts.V1.Responses; using PARR.API.Contracts.V1.Responses;
using PARR.API.Contracts.V1.Responses.Base; using PARR.API.Contracts.V1.Responses.Base;
using PARR.API.Controllers.V1.Base; using PARR.API.Controllers.V1.Base;
using PARR.DAL.Services.Interfaces.Job; using PARR.Core.Repositories.Interfaces.Job;
using PARR.Domain.Common.Roles; using PARR.Domain.Common.Roles;
namespace PARR.API.Controllers.V1 namespace PARR.API.Controllers.V1
@@ -17,11 +17,11 @@ namespace PARR.API.Controllers.V1
[Authorize(Roles = ParrRoles.Administrator.Role)] [Authorize(Roles = ParrRoles.Administrator.Role)]
public class JobGroupTypeController : BaseApiController public class JobGroupTypeController : BaseApiController
{ {
private readonly IJobGroupTypeService jobGroupTypeService; private readonly IJobGroupTypeRepository jobGroupTypeService;
private readonly IMapper mapper; private readonly IMapper mapper;
public JobGroupTypeController( public JobGroupTypeController(
IJobGroupTypeService jobGroupTypeService, IJobGroupTypeRepository jobGroupTypeService,
IMapper mapper IMapper mapper
) )
{ {

View File

@@ -6,7 +6,7 @@ using PARR.API.Contracts.V1.Responses.Base;
using PARR.API.Controllers.V1.Base; using PARR.API.Controllers.V1.Base;
using PARR.API.Settings; using PARR.API.Settings;
using PARR.Core.Common.Interfaces.RabbitServices; 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.Domain.Common.Rabbit.Messages;
using PARR.Domain.Common.Roles; using PARR.Domain.Common.Roles;
using PARR.Domain.Entities.Base.History; using PARR.Domain.Entities.Base.History;
@@ -22,12 +22,12 @@ namespace PARR.API.Controllers.V1
{ {
private readonly IRabbitService mqService; private readonly IRabbitService mqService;
private readonly MqSettings mqSettings; private readonly MqSettings mqSettings;
private readonly IJobGroupService jobGroupService; private readonly IJobGroupRepository jobGroupService;
public JobGroupUpdateNextRunController( public JobGroupUpdateNextRunController(
IRabbitService mqService, IRabbitService mqService,
MqSettings mqSettings, MqSettings mqSettings,
IJobGroupService jobGroupService IJobGroupRepository jobGroupService
) )
{ {
this.mqService = mqService; this.mqService = mqService;

View File

@@ -8,11 +8,11 @@ using PARR.API.Contracts.V1.Requests;
using PARR.API.Contracts.V1.Responses; using PARR.API.Contracts.V1.Responses;
using PARR.API.Contracts.V1.Responses.Base; using PARR.API.Contracts.V1.Responses.Base;
using PARR.API.Controllers.V1.Base; using PARR.API.Controllers.V1.Base;
using PARR.Core.Repositories.Interfaces.Job;
using PARR.Core.Repositories.Interfaces.Unit;
using PARR.DAL.DomainServices.UnitFilterService; using PARR.DAL.DomainServices.UnitFilterService;
using PARR.DAL.Services.Interfaces.Job;
using PARR.DAL.Services.Interfaces.Unit;
using PARR.Domain.Common.Roles; using PARR.Domain.Common.Roles;
using Job = PARR.DAL.Models.Job.Job; using Job = PARR.Domain.Entities.Job.Job;
namespace PARR.API.Controllers.V1 namespace PARR.API.Controllers.V1
{ {
@@ -25,16 +25,16 @@ namespace PARR.API.Controllers.V1
private readonly ILogger<JobUnitPreviewController> logger; private readonly ILogger<JobUnitPreviewController> logger;
private readonly IUnitFilterService unitFilterService; private readonly IUnitFilterService unitFilterService;
private readonly IValidator<JobRequest> jobValidator; private readonly IValidator<JobRequest> jobValidator;
private readonly IUnitService unitService; private readonly IUnitRepository unitService;
private readonly IJobGroupService jobGroupService; private readonly IJobGroupRepository jobGroupService;
private readonly IMapper mapper; private readonly IMapper mapper;
public JobUnitPreviewController( public JobUnitPreviewController(
ILogger<JobUnitPreviewController> logger, ILogger<JobUnitPreviewController> logger,
IUnitFilterService unitFilterService, IUnitFilterService unitFilterService,
IValidator<JobRequest> jobValidator, IValidator<JobRequest> jobValidator,
IUnitService unitService, IUnitRepository unitService,
IJobGroupService jobGroupService, IJobGroupRepository jobGroupService,
IMapper mapper IMapper mapper
) )
{ {

View File

@@ -6,7 +6,7 @@ using PARR.API.Contracts.V1;
using PARR.API.Contracts.V1.Responses; using PARR.API.Contracts.V1.Responses;
using PARR.API.Contracts.V1.Responses.Base; using PARR.API.Contracts.V1.Responses.Base;
using PARR.API.Controllers.V1.Base; using PARR.API.Controllers.V1.Base;
using PARR.DAL.Services.Interfaces.Unit; using PARR.Core.Repositories.Interfaces.Unit;
using PARR.Domain.Common.Roles; using PARR.Domain.Common.Roles;
namespace PARR.API.Controllers.V1 namespace PARR.API.Controllers.V1
@@ -18,11 +18,11 @@ namespace PARR.API.Controllers.V1
public class KiiUnitController : BaseApiController public class KiiUnitController : BaseApiController
{ {
private readonly IMapper mapper; private readonly IMapper mapper;
private readonly IUnitKiiUnitService unitKiiUnitService; private readonly IUnitKiiUnitRepository unitKiiUnitService;
public KiiUnitController( public KiiUnitController(
IMapper mapper, IMapper mapper,
IUnitKiiUnitService unitKiiUnitService IUnitKiiUnitRepository unitKiiUnitService
) )
{ {
this.mapper = mapper; this.mapper = mapper;

View File

@@ -8,10 +8,10 @@ using PARR.API.Contracts.V1.Responses;
using PARR.API.Contracts.V1.Responses.Base; using PARR.API.Contracts.V1.Responses.Base;
using PARR.API.Controllers.V1.Base; using PARR.API.Controllers.V1.Base;
using PARR.API.Extensions; using PARR.API.Extensions;
using PARR.DAL.Models; using PARR.Core.Repositories.Interfaces;
using PARR.DAL.Services.Interfaces;
using PARR.Domain.Common.Pagination; using PARR.Domain.Common.Pagination;
using PARR.Domain.Common.Roles; using PARR.Domain.Common.Roles;
using PARR.Domain.Entities;
namespace PARR.API.Controllers.V1 namespace PARR.API.Controllers.V1
{ {
@@ -22,11 +22,11 @@ namespace PARR.API.Controllers.V1
public class OrderController : BaseApiController public class OrderController : BaseApiController
{ {
private readonly IMapper mapper; private readonly IMapper mapper;
private readonly IOrderService orderService; private readonly IOrderRepository orderService;
public OrderController( public OrderController(
IMapper mapper, IMapper mapper,
IOrderService orderService IOrderRepository orderService
) )
{ {
this.mapper = mapper; this.mapper = mapper;

View File

@@ -11,10 +11,10 @@ using PARR.API.Contracts.V1.Responses.Base;
using PARR.API.Controllers.V1.Base; using PARR.API.Controllers.V1.Base;
using PARR.API.Extensions; using PARR.API.Extensions;
using PARR.API.Services.Interfaces; using PARR.API.Services.Interfaces;
using PARR.DAL.Models; using PARR.Core.Repositories.Interfaces;
using PARR.DAL.Services.Interfaces;
using PARR.Domain.Common.Pagination; using PARR.Domain.Common.Pagination;
using PARR.Domain.Common.Roles; using PARR.Domain.Common.Roles;
using PARR.Domain.Entities;
namespace PARR.API.Controllers.V1 namespace PARR.API.Controllers.V1
{ {
@@ -26,14 +26,14 @@ namespace PARR.API.Controllers.V1
{ {
private readonly ILogger<ProcessController> logger; private readonly ILogger<ProcessController> logger;
private readonly IMapper mapper; private readonly IMapper mapper;
private readonly IProcessService processService; private readonly IProcessRepository processService;
private readonly IValidator<ProcessRequest> validator; private readonly IValidator<ProcessRequest> validator;
private readonly IUriService uriService; private readonly IUriService uriService;
public ProcessController( public ProcessController(
ILogger<ProcessController> logger, ILogger<ProcessController> logger,
IMapper mapper, IMapper mapper,
IProcessService processService, IProcessRepository processService,
IValidator<ProcessRequest> validator, IValidator<ProcessRequest> validator,
IUriService uriService IUriService uriService
) )

View File

@@ -6,7 +6,7 @@ using PARR.API.Contracts.V1;
using PARR.API.Contracts.V1.Responses; using PARR.API.Contracts.V1.Responses;
using PARR.API.Contracts.V1.Responses.Base; using PARR.API.Contracts.V1.Responses.Base;
using PARR.API.Controllers.V1.Base; using PARR.API.Controllers.V1.Base;
using PARR.DAL.Services.Interfaces.Unit; using PARR.Core.Repositories.Interfaces.Unit;
using PARR.Domain.Common.Roles; using PARR.Domain.Common.Roles;
namespace PARR.API.Controllers.V1 namespace PARR.API.Controllers.V1
@@ -18,11 +18,11 @@ namespace PARR.API.Controllers.V1
public class RegionalEkPtkGroupController : BaseApiController public class RegionalEkPtkGroupController : BaseApiController
{ {
private readonly IMapper mapper; private readonly IMapper mapper;
private readonly IUnitRegionalEkPtkGroupService unitRegionalEkPtkGroupService; private readonly IUnitRegionalEkPtkGroupRepository unitRegionalEkPtkGroupService;
public RegionalEkPtkGroupController( public RegionalEkPtkGroupController(
IMapper mapper, IMapper mapper,
IUnitRegionalEkPtkGroupService unitRegionalEkPtkGroupService IUnitRegionalEkPtkGroupRepository unitRegionalEkPtkGroupService
) )
{ {
this.mapper = mapper; this.mapper = mapper;

View File

@@ -6,7 +6,7 @@ using PARR.API.Contracts.V1;
using PARR.API.Contracts.V1.Responses; using PARR.API.Contracts.V1.Responses;
using PARR.API.Contracts.V1.Responses.Base; using PARR.API.Contracts.V1.Responses.Base;
using PARR.API.Controllers.V1.Base; using PARR.API.Controllers.V1.Base;
using PARR.DAL.Services.Interfaces; using PARR.Core.Repositories.Interfaces;
using PARR.Domain.Common.Roles; using PARR.Domain.Common.Roles;
namespace PARR.API.Controllers.V1 namespace PARR.API.Controllers.V1
@@ -15,11 +15,11 @@ namespace PARR.API.Controllers.V1
public class RobotController : BaseApiController public class RobotController : BaseApiController
{ {
private readonly IMapper mapper; private readonly IMapper mapper;
private readonly IRobotService robotService; private readonly IRobotRepository robotService;
public RobotController( public RobotController(
IMapper mapper, IMapper mapper,
IRobotService robotService IRobotRepository robotService
) )
{ {
this.mapper = mapper; this.mapper = mapper;

View File

@@ -11,10 +11,10 @@ using PARR.API.Contracts.V1.Responses.Base;
using PARR.API.Controllers.V1.Base; using PARR.API.Controllers.V1.Base;
using PARR.API.Extensions; using PARR.API.Extensions;
using PARR.API.Services.Interfaces; using PARR.API.Services.Interfaces;
using PARR.DAL.Models; using PARR.Core.Repositories.Interfaces;
using PARR.DAL.Services.Interfaces;
using PARR.Domain.Common.Pagination; using PARR.Domain.Common.Pagination;
using PARR.Domain.Common.Roles; using PARR.Domain.Common.Roles;
using PARR.Domain.Entities;
namespace PARR.API.Controllers.V1 namespace PARR.API.Controllers.V1
{ {
@@ -25,19 +25,19 @@ namespace PARR.API.Controllers.V1
private readonly IMapper mapper; private readonly IMapper mapper;
private readonly IUriService uriService; private readonly IUriService uriService;
private readonly IRobotHistoryService robotHistoryService; private readonly IRobotHistoryRepository robotHistoryService;
private readonly IRobotConfigurationService robotConfigurationService; private readonly IRobotConfigurationRepository robotConfigurationService;
private readonly IClientService clientService; private readonly IClientService clientService;
private readonly IUserService userService; private readonly IUserRepository userService;
public RobotHistoryController( public RobotHistoryController(
IValidator<RobotHistoryRequest> validator, IValidator<RobotHistoryRequest> validator,
IMapper mapper, IMapper mapper,
IUriService uriService, IUriService uriService,
IRobotHistoryService robotHistoryService, IRobotHistoryRepository robotHistoryService,
IRobotConfigurationService robotConfigurationService, IRobotConfigurationRepository robotConfigurationService,
IClientService clientService, IClientService clientService,
IUserService userService IUserRepository userService
) )
{ {
this.validator = validator; this.validator = validator;

View File

@@ -6,7 +6,7 @@ using PARR.API.Contracts.V1;
using PARR.API.Contracts.V1.Responses; using PARR.API.Contracts.V1.Responses;
using PARR.API.Contracts.V1.Responses.Base; using PARR.API.Contracts.V1.Responses.Base;
using PARR.API.Controllers.V1.Base; using PARR.API.Controllers.V1.Base;
using PARR.DAL.Services.Interfaces; using PARR.Core.Repositories.Interfaces;
using PARR.Domain.Common.Roles; using PARR.Domain.Common.Roles;
namespace PARR.API.Controllers.V1 namespace PARR.API.Controllers.V1
@@ -15,11 +15,11 @@ namespace PARR.API.Controllers.V1
public class RobotHistoryLevelController : BaseApiController public class RobotHistoryLevelController : BaseApiController
{ {
private readonly IMapper mapper; private readonly IMapper mapper;
private readonly IRobotHistoryLevelService robotHistoryLevelService; private readonly IRobotHistoryLevelRepository robotHistoryLevelService;
public RobotHistoryLevelController( public RobotHistoryLevelController(
IMapper mapper, IMapper mapper,
IRobotHistoryLevelService robotHistoryLevelService IRobotHistoryLevelRepository robotHistoryLevelService
) )
{ {
this.mapper = mapper; this.mapper = mapper;

View File

@@ -9,12 +9,12 @@ using PARR.API.Contracts.V1.Responses.Base;
using PARR.API.Controllers.V1.Base; using PARR.API.Controllers.V1.Base;
using PARR.API.Services.Interfaces; using PARR.API.Services.Interfaces;
using PARR.BLL.Helpers; using PARR.BLL.Helpers;
using PARR.Core.Repositories.Interfaces;
using PARR.DAL.Contracts; using PARR.DAL.Contracts;
using PARR.DAL.DomainServices.Shortcodes; using PARR.DAL.DomainServices.Shortcodes;
using PARR.DAL.Models;
using PARR.DAL.NextRunServices; using PARR.DAL.NextRunServices;
using PARR.DAL.Services.Interfaces;
using PARR.Domain.Common.Roles; using PARR.Domain.Common.Roles;
using PARR.Domain.Entities;
using PARR.Domain.Entities.Base.History; using PARR.Domain.Entities.Base.History;
using PARR.Domain.Enums; using PARR.Domain.Enums;
@@ -25,11 +25,11 @@ namespace PARR.API.Controllers.V1
{ {
private readonly IMapper mapper; private readonly IMapper mapper;
private readonly SettingsFromDb settingsFromDb; private readonly SettingsFromDb settingsFromDb;
private readonly IRobotConfigurationService robotConfigurationService; private readonly IRobotConfigurationRepository robotConfigurationService;
//private readonly IEsppScheduleTransformService esppScheduleTransformService; //private readonly IEsppScheduleTransformService esppScheduleTransformService;
private readonly ILogger<RobotTaskController> logger; private readonly ILogger<RobotTaskController> logger;
private readonly IClientService clientService; private readonly IClientService clientService;
private readonly IRobotHistoryService robotHistoryService; private readonly IRobotHistoryRepository robotHistoryService;
private readonly IShortcodesService shortcodesService; private readonly IShortcodesService shortcodesService;
private readonly INextRunService nextRunService; private readonly INextRunService nextRunService;
//private readonly IScheduleResponseAreaTimeOffsetService scheduleResponseAreaTimeOffsetService; //private readonly IScheduleResponseAreaTimeOffsetService scheduleResponseAreaTimeOffsetService;
@@ -37,11 +37,11 @@ namespace PARR.API.Controllers.V1
public RobotTaskController( public RobotTaskController(
IMapper mapper, IMapper mapper,
SettingsFromDb settingsFromDb, SettingsFromDb settingsFromDb,
IRobotConfigurationService robotConfigurationService, IRobotConfigurationRepository robotConfigurationService,
//IEsppScheduleTransformService esppScheduleTransformService, //IEsppScheduleTransformService esppScheduleTransformService,
ILogger<RobotTaskController> logger, ILogger<RobotTaskController> logger,
IClientService clientService, IClientService clientService,
IRobotHistoryService robotHistoryService, IRobotHistoryRepository robotHistoryService,
IShortcodesService shortcodesService, IShortcodesService shortcodesService,
INextRunService nextRunService INextRunService nextRunService
//IScheduleResponseAreaTimeOffsetService scheduleResponseAreaTimeOffsetService //IScheduleResponseAreaTimeOffsetService scheduleResponseAreaTimeOffsetService

View File

@@ -8,10 +8,9 @@ using PARR.API.Contracts.V1.Responses;
using PARR.API.Contracts.V1.Responses.Base; using PARR.API.Contracts.V1.Responses.Base;
using PARR.API.Controllers.V1.Base; using PARR.API.Controllers.V1.Base;
using PARR.API.Services.Interfaces; using PARR.API.Services.Interfaces;
using PARR.DAL.Contracts; using PARR.Core.Repositories.Interfaces;
using PARR.DAL.Models;
using PARR.DAL.Services.Interfaces;
using PARR.Domain.Common.Roles; using PARR.Domain.Common.Roles;
using PARR.Domain.Entities;
using PARR.Domain.Enums; using PARR.Domain.Enums;
namespace PARR.API.Controllers.V1 namespace PARR.API.Controllers.V1
@@ -19,14 +18,14 @@ namespace PARR.API.Controllers.V1
[Authorize(Roles = ParrRoles.EsppRobot.RoleOrAdmin)] [Authorize(Roles = ParrRoles.EsppRobot.RoleOrAdmin)]
public class RobotTaskRobotStatusController : BaseApiController public class RobotTaskRobotStatusController : BaseApiController
{ {
private readonly IRobotConfigurationService robotConfigurationService; private readonly IRobotConfigurationRepository robotConfigurationService;
private readonly IRobotHistoryService robotHistoryService; private readonly IRobotHistoryRepository robotHistoryService;
private readonly IMapper mapper; private readonly IMapper mapper;
private readonly IClientService clientService; private readonly IClientService clientService;
public RobotTaskRobotStatusController( public RobotTaskRobotStatusController(
IRobotConfigurationService robotConfigurationService, IRobotConfigurationRepository robotConfigurationService,
IRobotHistoryService robotHistoryService, IRobotHistoryRepository robotHistoryService,
IMapper mapper, IMapper mapper,
IClientService clientService IClientService clientService
) )

View File

@@ -6,7 +6,7 @@ using PARR.API.Contracts.V1;
using PARR.API.Contracts.V1.Responses; using PARR.API.Contracts.V1.Responses;
using PARR.API.Contracts.V1.Responses.Base; using PARR.API.Contracts.V1.Responses.Base;
using PARR.API.Controllers.V1.Base; using PARR.API.Controllers.V1.Base;
using PARR.DAL.Services.Interfaces; using PARR.Core.Repositories.Interfaces;
using PARR.Domain.Common.Roles; using PARR.Domain.Common.Roles;
namespace PARR.API.Controllers.V1 namespace PARR.API.Controllers.V1
@@ -14,11 +14,11 @@ namespace PARR.API.Controllers.V1
[Authorize(Roles = ParrRoles.Administrator.Role)] [Authorize(Roles = ParrRoles.Administrator.Role)]
public class RoleController : BaseApiController public class RoleController : BaseApiController
{ {
private readonly IRoleService roleService; private readonly IRoleRepository roleService;
private readonly IMapper mapper; private readonly IMapper mapper;
public RoleController( public RoleController(
IRoleService roleService, IRoleRepository roleService,
IMapper mapper IMapper mapper
) )
{ {

View File

@@ -6,7 +6,7 @@ using PARR.API.Contracts.V1;
using PARR.API.Contracts.V1.Responses; using PARR.API.Contracts.V1.Responses;
using PARR.API.Contracts.V1.Responses.Base; using PARR.API.Contracts.V1.Responses.Base;
using PARR.API.Controllers.V1.Base; using PARR.API.Controllers.V1.Base;
using PARR.DAL.Services.Interfaces.Schedule; using PARR.Core.Repositories.Interfaces.Schedule;
using PARR.Domain.Common.Roles; using PARR.Domain.Common.Roles;
namespace PARR.API.Controllers.V1 namespace PARR.API.Controllers.V1
@@ -18,11 +18,11 @@ namespace PARR.API.Controllers.V1
public class ScheduleExcludeTypeCalendarController : BaseApiController public class ScheduleExcludeTypeCalendarController : BaseApiController
{ {
private readonly IMapper mapper; private readonly IMapper mapper;
private readonly IScheduleExcludeTypeCalendarService scheduleExcludeTypeCalendarService; private readonly IScheduleExcludeTypeCalendarRepository scheduleExcludeTypeCalendarService;
public ScheduleExcludeTypeCalendarController( public ScheduleExcludeTypeCalendarController(
IMapper mapper, IMapper mapper,
IScheduleExcludeTypeCalendarService scheduleExcludeTypeCalendarService IScheduleExcludeTypeCalendarRepository scheduleExcludeTypeCalendarService
) )
{ {
this.mapper = mapper; this.mapper = mapper;

View File

@@ -6,7 +6,7 @@ using PARR.API.Contracts.V1;
using PARR.API.Contracts.V1.Responses; using PARR.API.Contracts.V1.Responses;
using PARR.API.Contracts.V1.Responses.Base; using PARR.API.Contracts.V1.Responses.Base;
using PARR.API.Controllers.V1.Base; using PARR.API.Controllers.V1.Base;
using PARR.DAL.Services.Interfaces.Schedule; using PARR.Core.Repositories.Interfaces.Schedule;
using PARR.Domain.Common.Roles; using PARR.Domain.Common.Roles;
namespace PARR.API.Controllers.V1 namespace PARR.API.Controllers.V1
@@ -18,11 +18,11 @@ namespace PARR.API.Controllers.V1
public class ScheduleExcludeTypeController : BaseApiController public class ScheduleExcludeTypeController : BaseApiController
{ {
private readonly IMapper mapper; private readonly IMapper mapper;
private readonly IScheduleExcludeTypeService scheduleExcludeTypeService; private readonly IScheduleExcludeTypeRepository scheduleExcludeTypeService;
public ScheduleExcludeTypeController( public ScheduleExcludeTypeController(
IMapper mapper, IMapper mapper,
IScheduleExcludeTypeService scheduleExcludeTypeService IScheduleExcludeTypeRepository scheduleExcludeTypeService
) )
{ {
this.mapper = mapper; this.mapper = mapper;

View File

@@ -5,8 +5,8 @@ using PARR.API.Contracts.V1.Requests;
using PARR.API.Contracts.V1.Responses; using PARR.API.Contracts.V1.Responses;
using PARR.API.Contracts.V1.Responses.Base; using PARR.API.Contracts.V1.Responses.Base;
using PARR.API.Controllers.V1.Base; using PARR.API.Controllers.V1.Base;
using PARR.Core.Repositories.Interfaces;
using PARR.DAL.DomainServices.Shortcodes; using PARR.DAL.DomainServices.Shortcodes;
using PARR.DAL.Services.Interfaces;
namespace PARR.API.Controllers.V1 namespace PARR.API.Controllers.V1
{ {
@@ -14,12 +14,12 @@ namespace PARR.API.Controllers.V1
{ {
private readonly ILogger<ShortcodeController> logger; private readonly ILogger<ShortcodeController> logger;
private readonly IShortcodesService shortcodesService; private readonly IShortcodesService shortcodesService;
private readonly ITemplateService templateService; private readonly ITemplateRepository templateService;
public ShortcodeApplyController( public ShortcodeApplyController(
ILogger<ShortcodeController> logger, ILogger<ShortcodeController> logger,
IShortcodesService shortcodesService, IShortcodesService shortcodesService,
ITemplateService templateService ITemplateRepository templateService
) )
{ {
this.logger = logger; this.logger = logger;

View File

@@ -9,8 +9,8 @@ using PARR.API.Contracts.V1.Responses.Base;
using PARR.API.Contracts.V1.Responses.Statistics; using PARR.API.Contracts.V1.Responses.Statistics;
using PARR.API.Controllers.V1.Base; using PARR.API.Controllers.V1.Base;
using PARR.API.Helpers; using PARR.API.Helpers;
using PARR.Core.Repositories.Interfaces;
using PARR.DAL.NextRunServices; using PARR.DAL.NextRunServices;
using PARR.DAL.Services.Interfaces;
using PARR.Domain.Common.Roles; using PARR.Domain.Common.Roles;
namespace PARR.API.Controllers.V1.Statistics namespace PARR.API.Controllers.V1.Statistics
@@ -21,14 +21,14 @@ namespace PARR.API.Controllers.V1.Statistics
[Authorize(Roles = ParrRoles.Administrator.Role)] [Authorize(Roles = ParrRoles.Administrator.Role)]
public class StatOrderController : BaseApiController public class StatOrderController : BaseApiController
{ {
private readonly IOrderService orderService; private readonly IOrderRepository orderService;
private readonly IOrderStatusService orderStatusService; private readonly IOrderStatusRepository orderStatusService;
private readonly IMapper mapper; private readonly IMapper mapper;
private readonly INextRunService nextRunService; private readonly INextRunService nextRunService;
public StatOrderController( public StatOrderController(
IOrderService orderService, IOrderRepository orderService,
IOrderStatusService orderStatusService, IOrderStatusRepository orderStatusService,
IMapper mapper, IMapper mapper,
INextRunService nextRunService INextRunService nextRunService
) )

View File

@@ -10,7 +10,7 @@ using PARR.API.Contracts.V1.Responses.Base;
using PARR.API.Contracts.V1.Responses.Statistics; using PARR.API.Contracts.V1.Responses.Statistics;
using PARR.API.Controllers.V1.Base; using PARR.API.Controllers.V1.Base;
using PARR.API.Services.Interfaces; using PARR.API.Services.Interfaces;
using PARR.DAL.Services.Interfaces; using PARR.Core.Repositories.Interfaces;
using PARR.Domain.Common.Roles; using PARR.Domain.Common.Roles;
namespace PARR.API.Controllers.V1.Statistics namespace PARR.API.Controllers.V1.Statistics
@@ -21,13 +21,13 @@ namespace PARR.API.Controllers.V1.Statistics
[Authorize(Roles = ParrRoles.EsppRobot.RoleOrAdmin)] [Authorize(Roles = ParrRoles.EsppRobot.RoleOrAdmin)]
public class StatResponseAreaWorkLoadController : BaseApiController public class StatResponseAreaWorkLoadController : BaseApiController
{ {
private readonly ITemplateService templateService; private readonly ITemplateRepository templateService;
//private readonly IResponseAreaService responseAreaService; //private readonly IResponseAreaService responseAreaService;
private readonly IMapper mapper; private readonly IMapper mapper;
private readonly IWorkLoadService workLoadService; private readonly IWorkLoadService workLoadService;
public StatResponseAreaWorkLoadController( public StatResponseAreaWorkLoadController(
ITemplateService templateService, ITemplateRepository templateService,
//IResponseAreaService responseAreaService, //IResponseAreaService responseAreaService,
IMapper mapper, IMapper mapper,
IWorkLoadService workLoadService IWorkLoadService workLoadService

View File

@@ -10,9 +10,9 @@ using PARR.API.Contracts.V1.Responses.Base;
using PARR.API.Contracts.V1.Responses.Statistics; using PARR.API.Contracts.V1.Responses.Statistics;
using PARR.API.Controllers.V1.Base; using PARR.API.Controllers.V1.Base;
using PARR.API.Helpers; using PARR.API.Helpers;
using PARR.DAL.Models; using PARR.Core.Repositories.Interfaces;
using PARR.DAL.Services.Interfaces;
using PARR.Domain.Common.Roles; using PARR.Domain.Common.Roles;
using PARR.Domain.Entities;
namespace PARR.API.Controllers.V1.Statistics namespace PARR.API.Controllers.V1.Statistics
{ {
@@ -22,13 +22,13 @@ namespace PARR.API.Controllers.V1.Statistics
[Authorize(Roles = ParrRoles.Administrator.Role)] [Authorize(Roles = ParrRoles.Administrator.Role)]
public class StatRobotHistoryController : BaseApiController public class StatRobotHistoryController : BaseApiController
{ {
private readonly IRobotHistoryService robotHistoryService; private readonly IRobotHistoryRepository robotHistoryService;
private readonly IRobotHistoryLevelService robotHistoryLevelService; private readonly IRobotHistoryLevelRepository robotHistoryLevelService;
private readonly IMapper mapper; private readonly IMapper mapper;
public StatRobotHistoryController( public StatRobotHistoryController(
IRobotHistoryService robotHistoryService, IRobotHistoryRepository robotHistoryService,
IRobotHistoryLevelService robotHistoryLevelService, IRobotHistoryLevelRepository robotHistoryLevelService,
IMapper mapper IMapper mapper
) )
{ {

View File

@@ -15,7 +15,7 @@ using PARR.API.Controllers.V1.Base;
using PARR.API.Services.Interfaces; using PARR.API.Services.Interfaces;
using PARR.API.Settings; using PARR.API.Settings;
using PARR.Core.Common.Interfaces; using PARR.Core.Common.Interfaces;
using PARR.DAL.Services.Interfaces; using PARR.Core.Repositories.Interfaces;
using PARR.Domain.Common.Roles; using PARR.Domain.Common.Roles;
using PARR.Domain.Enums; using PARR.Domain.Enums;
using PARR.Domain.Settings; using PARR.Domain.Settings;
@@ -33,7 +33,7 @@ namespace PARR.API.Controllers.V1.Statistics
private readonly InfluxDbSettings influxDbSettings; private readonly InfluxDbSettings influxDbSettings;
private readonly MonitoringSettings monitoringSettings; private readonly MonitoringSettings monitoringSettings;
private readonly IClientService clientService; private readonly IClientService clientService;
private readonly IUserService userService; private readonly IUserRepository userService;
private readonly IMapper mapper; private readonly IMapper mapper;
public StatRobotStateController( public StatRobotStateController(
@@ -42,7 +42,7 @@ namespace PARR.API.Controllers.V1.Statistics
InfluxDbSettings influxDbSettings, InfluxDbSettings influxDbSettings,
MonitoringSettings monitoringSettings, MonitoringSettings monitoringSettings,
IClientService clientService, IClientService clientService,
IUserService userService, IUserRepository userService,
IMapper mapper IMapper mapper
) )
{ {

View File

@@ -7,7 +7,7 @@ using PARR.API.Contracts.V1.Responses;
using PARR.API.Contracts.V1.Responses.Base; using PARR.API.Contracts.V1.Responses.Base;
using PARR.API.Contracts.V1.Responses.Statistics; using PARR.API.Contracts.V1.Responses.Statistics;
using PARR.API.Controllers.V1.Base; using PARR.API.Controllers.V1.Base;
using PARR.DAL.Services.Interfaces; using PARR.Core.Repositories.Interfaces;
using PARR.Domain.Common.Roles; using PARR.Domain.Common.Roles;
namespace PARR.API.Controllers.V1.Statistics namespace PARR.API.Controllers.V1.Statistics
@@ -18,15 +18,15 @@ namespace PARR.API.Controllers.V1.Statistics
[Authorize(Roles = ParrRoles.Administrator.Role)] [Authorize(Roles = ParrRoles.Administrator.Role)]
public class StatRobotStatusController : BaseApiController public class StatRobotStatusController : BaseApiController
{ {
private readonly IRobotService robotService; private readonly IRobotRepository robotService;
private readonly IRobotConfigurationService robotConfigurationService; private readonly IRobotConfigurationRepository robotConfigurationService;
private readonly IRobotStatusService robotStatusService; private readonly IRobotStatusRepository robotStatusService;
private readonly IMapper mapper; private readonly IMapper mapper;
public StatRobotStatusController( public StatRobotStatusController(
IRobotService robotService, IRobotRepository robotService,
IRobotConfigurationService robotConfigurationService, IRobotConfigurationRepository robotConfigurationService,
IRobotStatusService robotStatusService, IRobotStatusRepository robotStatusService,
IMapper mapper IMapper mapper
) )
{ {

View File

@@ -8,8 +8,8 @@ using PARR.API.Contracts.V1.Responses;
using PARR.API.Contracts.V1.Responses.Base; using PARR.API.Contracts.V1.Responses.Base;
using PARR.API.Contracts.V1.Responses.Statistics; using PARR.API.Contracts.V1.Responses.Statistics;
using PARR.API.Controllers.V1.Base; using PARR.API.Controllers.V1.Base;
using PARR.Core.Repositories.Interfaces;
using PARR.DAL.Contracts; using PARR.DAL.Contracts;
using PARR.DAL.Services.Interfaces;
using PARR.Domain.Common.Roles; using PARR.Domain.Common.Roles;
using PARR.Domain.Enums; using PARR.Domain.Enums;
@@ -21,17 +21,17 @@ namespace PARR.API.Controllers.V1.Statistics
[Authorize(Roles = ParrRoles.Administrator.Role)] [Authorize(Roles = ParrRoles.Administrator.Role)]
public class StatRobotTaskController : BaseApiController public class StatRobotTaskController : BaseApiController
{ {
private readonly IRobotService robotService; private readonly IRobotRepository robotService;
private readonly IRobotConfigurationService robotConfigurationService; private readonly IRobotConfigurationRepository robotConfigurationService;
private readonly ITaskStatusService taskStatusService; private readonly ITaskStatusRepository taskStatusService;
private readonly IRobotHistoryService robotHistoryService; private readonly IRobotHistoryRepository robotHistoryService;
private readonly IMapper mapper; private readonly IMapper mapper;
public StatRobotTaskController( public StatRobotTaskController(
IRobotService robotService, IRobotRepository robotService,
IRobotConfigurationService robotConfigurationService, IRobotConfigurationRepository robotConfigurationService,
ITaskStatusService taskStatusService, ITaskStatusRepository taskStatusService,
IRobotHistoryService robotHistoryService, IRobotHistoryRepository robotHistoryService,
IMapper mapper IMapper mapper
) )
{ {

View File

@@ -7,7 +7,7 @@ using PARR.API.Contracts.V1.Responses;
using PARR.API.Contracts.V1.Responses.Base; using PARR.API.Contracts.V1.Responses.Base;
using PARR.API.Contracts.V1.Responses.Statistics; using PARR.API.Contracts.V1.Responses.Statistics;
using PARR.API.Controllers.V1.Base; using PARR.API.Controllers.V1.Base;
using PARR.DAL.Services.Interfaces; using PARR.Core.Repositories.Interfaces;
using PARR.Domain.Common.Roles; using PARR.Domain.Common.Roles;
namespace PARR.API.Controllers.V1.Statistics namespace PARR.API.Controllers.V1.Statistics
@@ -18,13 +18,13 @@ namespace PARR.API.Controllers.V1.Statistics
[Authorize(Roles = ParrRoles.Administrator.Role)] [Authorize(Roles = ParrRoles.Administrator.Role)]
public class StatStatusTypeTemplates : BaseApiController public class StatStatusTypeTemplates : BaseApiController
{ {
private readonly ITemplateService templateService; private readonly ITemplateRepository templateService;
private readonly ITemplateStatusTypeService templateStatusTypeService; private readonly ITemplateStatusTypeRepository templateStatusTypeService;
private readonly IMapper mapper; private readonly IMapper mapper;
public StatStatusTypeTemplates( public StatStatusTypeTemplates(
ITemplateService templateService, ITemplateRepository templateService,
ITemplateStatusTypeService templateStatusTypeService, ITemplateStatusTypeRepository templateStatusTypeService,
IMapper mapper IMapper mapper
) )
{ {

View File

@@ -6,21 +6,21 @@ using PARR.API.Contracts.V1.Responses.Base;
using PARR.API.Contracts.V1.Responses.Statistics; using PARR.API.Contracts.V1.Responses.Statistics;
using PARR.API.Controllers.V1.Base; using PARR.API.Controllers.V1.Base;
using PARR.API.Helpers; using PARR.API.Helpers;
using PARR.Core.Repositories.Interfaces;
using PARR.DAL.NextRunServices; using PARR.DAL.NextRunServices;
using PARR.DAL.Services.Interfaces;
using PARR.Domain.Enums; using PARR.Domain.Enums;
namespace PARR.API.Controllers.V1.Statistics namespace PARR.API.Controllers.V1.Statistics
{ {
public class StatTemplateAutoControlController : BaseApiController public class StatTemplateAutoControlController : BaseApiController
{ {
private readonly ITemplateService templateService; private readonly ITemplateRepository templateService;
private readonly ITemplateHistoryService templateHistoryService; private readonly ITemplateHistoryRepository templateHistoryService;
private readonly INextRunService nextRunService; private readonly INextRunService nextRunService;
public StatTemplateAutoControlController( public StatTemplateAutoControlController(
ITemplateService templateService, ITemplateRepository templateService,
ITemplateHistoryService templateHistoryService, ITemplateHistoryRepository templateHistoryService,
INextRunService nextRunService INextRunService nextRunService
) )
{ {

View File

@@ -7,9 +7,9 @@ using PARR.API.Contracts.V1.Responses.Base;
using PARR.API.Contracts.V1.Responses.Statistics; using PARR.API.Contracts.V1.Responses.Statistics;
using PARR.API.Controllers.V1.Base; using PARR.API.Controllers.V1.Base;
using PARR.API.Helpers; using PARR.API.Helpers;
using PARR.Core.Repositories.Interfaces;
using PARR.DAL.Contracts; using PARR.DAL.Contracts;
using PARR.DAL.NextRunServices; using PARR.DAL.NextRunServices;
using PARR.DAL.Services.Interfaces;
using PARR.Domain.Common.Roles; using PARR.Domain.Common.Roles;
using PARR.Domain.Enums; using PARR.Domain.Enums;
@@ -21,11 +21,11 @@ namespace PARR.API.Controllers.V1.Statistics
[Authorize(Roles = ParrRoles.Administrator.Role)] [Authorize(Roles = ParrRoles.Administrator.Role)]
public class StatTemplateController : BaseApiController public class StatTemplateController : BaseApiController
{ {
private readonly ITemplateService templateService; private readonly ITemplateRepository templateService;
private readonly INextRunService nextRunService; private readonly INextRunService nextRunService;
public StatTemplateController( public StatTemplateController(
ITemplateService templateService, ITemplateRepository templateService,
INextRunService nextRunService INextRunService nextRunService
) )
{ {

View File

@@ -8,14 +8,14 @@ using PARR.API.Contracts.V1.Responses;
using PARR.API.Contracts.V1.Responses.Base; using PARR.API.Contracts.V1.Responses.Base;
using PARR.API.Contracts.V1.Responses.Statistics; using PARR.API.Contracts.V1.Responses.Statistics;
using PARR.API.Controllers.V1.Base; using PARR.API.Controllers.V1.Base;
using PARR.Core.Repositories.Interfaces;
using PARR.Core.Repositories.Interfaces.Job;
using PARR.Core.Repositories.Interfaces.Schedule;
using PARR.DAL.DomainServices.Shortcodes; using PARR.DAL.DomainServices.Shortcodes;
using PARR.DAL.Models;
using PARR.DAL.Models.Job;
using PARR.DAL.NextRunServices; using PARR.DAL.NextRunServices;
using PARR.DAL.Services.Interfaces;
using PARR.DAL.Services.Interfaces.Job;
using PARR.DAL.Services.Interfaces.Schedule;
using PARR.Domain.Common.Roles; using PARR.Domain.Common.Roles;
using PARR.Domain.Entities;
using PARR.Domain.Entities.Job;
using PARR.Domain.Enums; using PARR.Domain.Enums;
namespace PARR.API.Controllers.V1.Statistics namespace PARR.API.Controllers.V1.Statistics
@@ -26,22 +26,22 @@ namespace PARR.API.Controllers.V1.Statistics
[Authorize(Roles = ParrRoles.Administrator.Role)] [Authorize(Roles = ParrRoles.Administrator.Role)]
public class StatTemplateDistributionController : BaseApiController public class StatTemplateDistributionController : BaseApiController
{ {
private readonly ITemplateService templateService; private readonly ITemplateRepository templateService;
private readonly IJobGroupService jobGroupService; private readonly IJobGroupRepository jobGroupService;
private readonly IMapper mapper; private readonly IMapper mapper;
private readonly IShortcodesService shortcodesService; private readonly IShortcodesService shortcodesService;
private readonly INextRunService nextRunService; private readonly INextRunService nextRunService;
private readonly ILogger<StatTemplateDistributionController> logger; private readonly ILogger<StatTemplateDistributionController> logger;
private readonly IScheduleResponseAreaTimeOffsetService scheduleResponseAreaTimeOffsetService; private readonly IScheduleResponseAreaTimeOffsetRepository scheduleResponseAreaTimeOffsetService;
public StatTemplateDistributionController( public StatTemplateDistributionController(
ITemplateService templateService, ITemplateRepository templateService,
IJobGroupService jobGroupService, IJobGroupRepository jobGroupService,
IMapper mapper, IMapper mapper,
IShortcodesService shortcodesService, IShortcodesService shortcodesService,
INextRunService nextRunService, INextRunService nextRunService,
ILogger<StatTemplateDistributionController> logger, ILogger<StatTemplateDistributionController> logger,
IScheduleResponseAreaTimeOffsetService scheduleResponseAreaTimeOffsetService IScheduleResponseAreaTimeOffsetRepository scheduleResponseAreaTimeOffsetService
) )
{ {
this.templateService = templateService; this.templateService = templateService;

View File

@@ -7,8 +7,8 @@ using PARR.API.Contracts.V1.Responses.Base;
using PARR.API.Contracts.V1.Responses.Statistics; using PARR.API.Contracts.V1.Responses.Statistics;
using PARR.API.Controllers.V1.Base; using PARR.API.Controllers.V1.Base;
using PARR.API.Helpers; using PARR.API.Helpers;
using PARR.Core.Repositories.Interfaces.Unit;
using PARR.DAL.NextRunServices; using PARR.DAL.NextRunServices;
using PARR.DAL.Services.Interfaces.Unit;
using PARR.Domain.Common.Roles; using PARR.Domain.Common.Roles;
namespace PARR.API.Controllers.V1.Statistics namespace PARR.API.Controllers.V1.Statistics
@@ -19,11 +19,11 @@ namespace PARR.API.Controllers.V1.Statistics
[Authorize(Roles = ParrRoles.Administrator.Role)] [Authorize(Roles = ParrRoles.Administrator.Role)]
public class StatUnitController : BaseApiController public class StatUnitController : BaseApiController
{ {
private readonly IUnitService unitService; private readonly IUnitRepository unitService;
private readonly INextRunService nextRunService; private readonly INextRunService nextRunService;
public StatUnitController( public StatUnitController(
IUnitService unitService, IUnitRepository unitService,
INextRunService nextRunService INextRunService nextRunService
) )
{ {

View File

@@ -6,9 +6,8 @@ using PARR.API.Contracts.V1.Requests.BaseRequests;
using PARR.API.Contracts.V1.Responses.Base; using PARR.API.Contracts.V1.Responses.Base;
using PARR.API.Contracts.V1.Responses.Statistics; using PARR.API.Contracts.V1.Responses.Statistics;
using PARR.API.Controllers.V1.Base; using PARR.API.Controllers.V1.Base;
using PARR.Core.Repositories.Interfaces.Unit;
using PARR.DAL.NextRunServices; using PARR.DAL.NextRunServices;
using PARR.DAL.Services.Interfaces;
using PARR.DAL.Services.Interfaces.Unit;
using PARR.Domain.Common.Roles; using PARR.Domain.Common.Roles;
namespace PARR.API.Controllers.V1.Statistics namespace PARR.API.Controllers.V1.Statistics
@@ -20,14 +19,14 @@ namespace PARR.API.Controllers.V1.Statistics
public class StatUnitFieldValuesController : BaseApiController public class StatUnitFieldValuesController : BaseApiController
{ {
//private readonly IApplicationService applicationService; //private readonly IApplicationService applicationService;
private readonly IUnitFieldValueService unitFieldValueService; private readonly IUnitFieldValueRepository unitFieldValueService;
private readonly INextRunService nextRunService; private readonly INextRunService nextRunService;
//private readonly ICalendarService calendarService; //private readonly ICalendarService calendarService;
public StatUnitFieldValuesController( public StatUnitFieldValuesController(
//IApplicationService applicationService, //IApplicationService applicationService,
IUnitFieldValueService unitFieldValueService, IUnitFieldValueRepository unitFieldValueService,
//ICalendarService calendarService //ICalendarService calendarService
INextRunService nextRunService INextRunService nextRunService
) )

View File

@@ -9,7 +9,7 @@ using PARR.API.Contracts.V1.Responses.Base;
using PARR.API.Contracts.V1.Responses.Statistics; using PARR.API.Contracts.V1.Responses.Statistics;
using PARR.API.Controllers.V1.Base; using PARR.API.Controllers.V1.Base;
using PARR.API.Services.Interfaces; using PARR.API.Services.Interfaces;
using PARR.DAL.Services.Interfaces; using PARR.Core.Repositories.Interfaces;
namespace PARR.API.Controllers.V1.Statistics namespace PARR.API.Controllers.V1.Statistics
{ {
@@ -18,14 +18,14 @@ namespace PARR.API.Controllers.V1.Statistics
/// </summary> /// </summary>
public class StatWorkGroupWorkLoadController : BaseApiController public class StatWorkGroupWorkLoadController : BaseApiController
{ {
private readonly ITemplateService templateService; private readonly ITemplateRepository templateService;
private readonly IWorkLoadService workLoadService; private readonly IWorkLoadService workLoadService;
//private readonly IWorkGroupService workGroupService; //private readonly IWorkGroupService workGroupService;
private readonly IMapper mapper; private readonly IMapper mapper;
private readonly ILogger<StatWorkGroupWorkLoadController> logger; private readonly ILogger<StatWorkGroupWorkLoadController> logger;
public StatWorkGroupWorkLoadController( public StatWorkGroupWorkLoadController(
ITemplateService templateService, ITemplateRepository templateService,
IWorkLoadService workLoadService, IWorkLoadService workLoadService,
//IWorkGroupService workGroupService, //IWorkGroupService workGroupService,
IMapper mapper, IMapper mapper,

View File

@@ -1,16 +1,7 @@
using AutoMapper; using AutoMapper;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using PARR.API.Contracts.V1;
using PARR.API.Contracts.V1.Requests;
using PARR.API.Contracts.V1.Requests.Queries;
using PARR.API.Contracts.V1.Responses;
using PARR.API.Contracts.V1.Responses.Base;
using PARR.API.Contracts.V1.Responses.Statistics;
using PARR.API.Controllers.V1.Base; using PARR.API.Controllers.V1.Base;
using PARR.API.Services.Interfaces; using PARR.API.Services.Interfaces;
using PARR.DAL.Models; using PARR.Core.Repositories.Interfaces;
using PARR.DAL.Services.Interfaces;
namespace PARR.API.Controllers.V1.Statistics namespace PARR.API.Controllers.V1.Statistics
{ {
@@ -19,14 +10,14 @@ namespace PARR.API.Controllers.V1.Statistics
/// </summary> /// </summary>
public class StatWorkWorkLoadController : BaseApiController public class StatWorkWorkLoadController : BaseApiController
{ {
private readonly ITemplateService templateService; private readonly ITemplateRepository templateService;
private readonly IWorkLoadService workLoadService; private readonly IWorkLoadService workLoadService;
private readonly IMapper mapper; private readonly IMapper mapper;
private readonly ILogger<StatWorkWorkLoadController> logger; private readonly ILogger<StatWorkWorkLoadController> logger;
//private readonly IWorkGroupService workGroupService; //private readonly IWorkGroupService workGroupService;
public StatWorkWorkLoadController( public StatWorkWorkLoadController(
ITemplateService templateService, ITemplateRepository templateService,
IWorkLoadService workLoadService, IWorkLoadService workLoadService,
IMapper mapper, IMapper mapper,
ILogger<StatWorkWorkLoadController> logger ILogger<StatWorkWorkLoadController> logger

View File

@@ -11,10 +11,10 @@ using PARR.API.Contracts.V1.Responses.Base;
using PARR.API.Controllers.V1.Base; using PARR.API.Controllers.V1.Base;
using PARR.API.Extensions; using PARR.API.Extensions;
using PARR.API.Services.Interfaces; using PARR.API.Services.Interfaces;
using PARR.DAL.Models; using PARR.Core.Repositories.Interfaces;
using PARR.DAL.Services.Interfaces;
using PARR.Domain.Common.Pagination; using PARR.Domain.Common.Pagination;
using PARR.Domain.Common.Roles; using PARR.Domain.Common.Roles;
using PARR.Domain.Entities;
namespace PARR.API.Controllers.V1 namespace PARR.API.Controllers.V1
{ {
@@ -26,14 +26,14 @@ namespace PARR.API.Controllers.V1
{ {
private readonly ILogger<SubprocessController> logger; private readonly ILogger<SubprocessController> logger;
private readonly IMapper mapper; private readonly IMapper mapper;
private readonly ISubprocessService subprocessService; private readonly ISubprocessRepository subprocessService;
private readonly IValidator<SubprocessRequest> validator; private readonly IValidator<SubprocessRequest> validator;
private readonly IUriService uriService; private readonly IUriService uriService;
public SubprocessController( public SubprocessController(
ILogger<SubprocessController> logger, ILogger<SubprocessController> logger,
IMapper mapper, IMapper mapper,
ISubprocessService subprocessService, ISubprocessRepository subprocessService,
IValidator<SubprocessRequest> validator, IValidator<SubprocessRequest> validator,
IUriService uriService IUriService uriService
) )

View File

@@ -6,7 +6,7 @@ using PARR.API.Contracts.V1;
using PARR.API.Contracts.V1.Responses; using PARR.API.Contracts.V1.Responses;
using PARR.API.Contracts.V1.Responses.Base; using PARR.API.Contracts.V1.Responses.Base;
using PARR.API.Controllers.V1.Base; using PARR.API.Controllers.V1.Base;
using PARR.DAL.Services.Interfaces; using PARR.Core.Repositories.Interfaces;
using PARR.Domain.Common.Roles; using PARR.Domain.Common.Roles;
namespace PARR.API.Controllers.V1 namespace PARR.API.Controllers.V1
@@ -15,11 +15,11 @@ namespace PARR.API.Controllers.V1
public class TaskStatusController : BaseApiController public class TaskStatusController : BaseApiController
{ {
private readonly IMapper mapper; private readonly IMapper mapper;
private readonly IStatusTemplateService statusTemplateService; private readonly IStatusTemplateRepository statusTemplateService;
public TaskStatusController( public TaskStatusController(
IMapper mapper, IMapper mapper,
IStatusTemplateService statusTemplateService IStatusTemplateRepository statusTemplateService
) )
{ {
this.mapper = mapper; this.mapper = mapper;

View File

@@ -8,7 +8,7 @@ using PARR.API.Controllers.V1.Base;
using PARR.API.Services.Interfaces; using PARR.API.Services.Interfaces;
using PARR.API.Settings; using PARR.API.Settings;
using PARR.Core.Common.Interfaces.RabbitServices; 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.Domain.Common.Rabbit.Messages;
using PARR.Domain.Common.Roles; using PARR.Domain.Common.Roles;
using PARR.Domain.Entities.Base.History; using PARR.Domain.Entities.Base.History;
@@ -26,7 +26,7 @@ namespace PARR.API.Controllers.V1
private readonly IRabbitService mqService; private readonly IRabbitService mqService;
private readonly IUriService uriService; private readonly IUriService uriService;
private readonly MqSettings mqSettings; private readonly MqSettings mqSettings;
private readonly IJobService jobService; private readonly IJobRepository jobService;
private readonly IClientService clientService; private readonly IClientService clientService;
public TemplateActivatorController( public TemplateActivatorController(
@@ -34,7 +34,7 @@ namespace PARR.API.Controllers.V1
IRabbitService mqService, IRabbitService mqService,
IUriService uriService, IUriService uriService,
MqSettings mqSettings, MqSettings mqSettings,
IJobService jobService, IJobRepository jobService,
IClientService clientService IClientService clientService
) )
{ {

View File

@@ -12,13 +12,13 @@ using PARR.API.Extensions;
using PARR.API.Services.Interfaces; using PARR.API.Services.Interfaces;
using PARR.BLL.Helpers; using PARR.BLL.Helpers;
using PARR.Core.Common.Helpers; using PARR.Core.Common.Helpers;
using PARR.Core.Repositories.Interfaces;
using PARR.Core.Repositories.Interfaces.Schedule;
using PARR.DAL.Contracts; using PARR.DAL.Contracts;
using PARR.DAL.DomainServices.Shortcodes; using PARR.DAL.DomainServices.Shortcodes;
using PARR.DAL.Models;
using PARR.DAL.Services.Interfaces;
using PARR.DAL.Services.Interfaces.Schedule;
using PARR.Domain.Common.Pagination; using PARR.Domain.Common.Pagination;
using PARR.Domain.Common.Roles; using PARR.Domain.Common.Roles;
using PARR.Domain.Entities;
using PARR.Domain.Entities.Base.History; using PARR.Domain.Entities.Base.History;
using PARR.Domain.Enums; using PARR.Domain.Enums;
@@ -31,25 +31,25 @@ namespace PARR.API.Controllers.V1
public class TemplateController : BaseApiController public class TemplateController : BaseApiController
{ {
private readonly IMapper mapper; private readonly IMapper mapper;
private readonly ITemplateService templateService; private readonly ITemplateRepository templateService;
private readonly IRobotConfigurationService robotConfigurationService; private readonly IRobotConfigurationRepository robotConfigurationService;
private readonly IClientService clientService; private readonly IClientService clientService;
private readonly ILogger<TemplateController> logger; private readonly ILogger<TemplateController> logger;
private readonly IShortcodesService shortcodesService; private readonly IShortcodesService shortcodesService;
private readonly IOrderService orderService; private readonly IOrderRepository orderService;
private readonly SettingsFromDb settingsFromDb; private readonly SettingsFromDb settingsFromDb;
private readonly IScheduleResponseAreaTimeOffsetService scheduleResponseAreaTimeOffsetService; private readonly IScheduleResponseAreaTimeOffsetRepository scheduleResponseAreaTimeOffsetService;
public TemplateController( public TemplateController(
IMapper mapper, IMapper mapper,
ITemplateService templateService, ITemplateRepository templateService,
IRobotConfigurationService robotConfigurationService, IRobotConfigurationRepository robotConfigurationService,
IClientService clientService, IClientService clientService,
ILogger<TemplateController> logger, ILogger<TemplateController> logger,
IShortcodesService shortcodesService, IShortcodesService shortcodesService,
IOrderService orderService, IOrderRepository orderService,
SettingsFromDb settingsFromDb, SettingsFromDb settingsFromDb,
IScheduleResponseAreaTimeOffsetService scheduleResponseAreaTimeOffsetService IScheduleResponseAreaTimeOffsetRepository scheduleResponseAreaTimeOffsetService
) )
{ {
this.mapper = mapper; this.mapper = mapper;

View File

@@ -8,10 +8,10 @@ using PARR.API.Contracts.V1.Responses;
using PARR.API.Contracts.V1.Responses.Base; using PARR.API.Contracts.V1.Responses.Base;
using PARR.API.Controllers.V1.Base; using PARR.API.Controllers.V1.Base;
using PARR.API.Extensions; using PARR.API.Extensions;
using PARR.DAL.Models; using PARR.Core.Repositories.Interfaces;
using PARR.DAL.Services.Interfaces;
using PARR.Domain.Common.Pagination; using PARR.Domain.Common.Pagination;
using PARR.Domain.Common.Roles; using PARR.Domain.Common.Roles;
using PARR.Domain.Entities;
namespace PARR.API.Controllers.V1 namespace PARR.API.Controllers.V1
{ {
@@ -22,11 +22,11 @@ namespace PARR.API.Controllers.V1
public class TemplateHistoryController : BaseApiController public class TemplateHistoryController : BaseApiController
{ {
private readonly IMapper mapper; private readonly IMapper mapper;
private readonly ITemplateHistoryService templateHistoryService; private readonly ITemplateHistoryRepository templateHistoryService;
public TemplateHistoryController( public TemplateHistoryController(
IMapper mapper, IMapper mapper,
ITemplateHistoryService templateHistoryService ITemplateHistoryRepository templateHistoryService
) )
{ {
this.mapper = mapper; this.mapper = mapper;

View File

@@ -8,7 +8,7 @@ using PARR.API.Contracts.V1.Responses;
using PARR.API.Contracts.V1.Responses.Base; using PARR.API.Contracts.V1.Responses.Base;
using PARR.API.Controllers.V1.Base; using PARR.API.Controllers.V1.Base;
using PARR.API.Services.Interfaces; using PARR.API.Services.Interfaces;
using PARR.DAL.Services.Interfaces; using PARR.Core.Repositories.Interfaces;
using PARR.Domain.Common.Roles; using PARR.Domain.Common.Roles;
namespace PARR.API.Controllers.V1 namespace PARR.API.Controllers.V1
@@ -19,13 +19,13 @@ namespace PARR.API.Controllers.V1
[Authorize(Roles = ParrRoles.EsppRobot.RoleOrAdmin)] [Authorize(Roles = ParrRoles.EsppRobot.RoleOrAdmin)]
public class TemplateScheduleEspp : BaseApiController public class TemplateScheduleEspp : BaseApiController
{ {
private readonly ITemplateService templateService; private readonly ITemplateRepository templateService;
private readonly IMapper mapper; private readonly IMapper mapper;
private readonly IValidator<TemplateScheduleEsppIdRequest> validator; private readonly IValidator<TemplateScheduleEsppIdRequest> validator;
private readonly IUriService uriService; private readonly IUriService uriService;
public TemplateScheduleEspp( public TemplateScheduleEspp(
ITemplateService templateService, ITemplateRepository templateService,
IMapper mapper, IMapper mapper,
IValidator<TemplateScheduleEsppIdRequest> validator, IValidator<TemplateScheduleEsppIdRequest> validator,
IUriService uriService IUriService uriService

View File

@@ -6,7 +6,7 @@ using PARR.API.Contracts.V1;
using PARR.API.Contracts.V1.Responses; using PARR.API.Contracts.V1.Responses;
using PARR.API.Contracts.V1.Responses.Base; using PARR.API.Contracts.V1.Responses.Base;
using PARR.API.Controllers.V1.Base; using PARR.API.Controllers.V1.Base;
using PARR.DAL.Services.Interfaces; using PARR.Core.Repositories.Interfaces;
using PARR.Domain.Common.Roles; using PARR.Domain.Common.Roles;
namespace PARR.API.Controllers.V1 namespace PARR.API.Controllers.V1
@@ -18,11 +18,11 @@ namespace PARR.API.Controllers.V1
public class TemplateStatusTypeController : BaseApiController public class TemplateStatusTypeController : BaseApiController
{ {
private readonly IMapper mapper; private readonly IMapper mapper;
private readonly ITemplateStatusTypeService templateStatusTypeService; private readonly ITemplateStatusTypeRepository templateStatusTypeService;
public TemplateStatusTypeController( public TemplateStatusTypeController(
IMapper mapper, IMapper mapper,
ITemplateStatusTypeService templateStatusTypeService ITemplateStatusTypeRepository templateStatusTypeService
) )
{ {
this.mapper = mapper; this.mapper = mapper;

View File

@@ -6,8 +6,8 @@ using PARR.API.Contracts.V1;
using PARR.API.Contracts.V1.Responses; using PARR.API.Contracts.V1.Responses;
using PARR.API.Contracts.V1.Responses.Base; using PARR.API.Contracts.V1.Responses.Base;
using PARR.API.Controllers.V1.Base; using PARR.API.Controllers.V1.Base;
using PARR.Core.Repositories.Interfaces;
using PARR.DAL.Contracts; using PARR.DAL.Contracts;
using PARR.DAL.Services.Interfaces;
using PARR.Domain.Common.Roles; using PARR.Domain.Common.Roles;
using PARR.Domain.Enums; using PARR.Domain.Enums;
@@ -20,14 +20,14 @@ namespace PARR.API.Controllers.V1
public class TemplateSyncStateController : BaseApiController public class TemplateSyncStateController : BaseApiController
{ {
private readonly IMapper mapper; private readonly IMapper mapper;
private readonly ITemplateService templateService; private readonly ITemplateRepository templateService;
private readonly IRobotConfigurationService robotConfigurationService; private readonly IRobotConfigurationRepository robotConfigurationService;
private readonly ILogger<TemplateController> logger; private readonly ILogger<TemplateController> logger;
public TemplateSyncStateController( public TemplateSyncStateController(
IMapper mapper, IMapper mapper,
ITemplateService templateService, ITemplateRepository templateService,
IRobotConfigurationService robotConfigurationService, IRobotConfigurationRepository robotConfigurationService,
ILogger<TemplateController> logger ILogger<TemplateController> logger
) )
{ {

View File

@@ -6,8 +6,8 @@ using PARR.API.Controllers.V1.Base;
using PARR.API.Services.Interfaces; using PARR.API.Services.Interfaces;
using PARR.API.Settings; using PARR.API.Settings;
using PARR.Core.Common.Interfaces; using PARR.Core.Common.Interfaces;
using PARR.Core.Repositories.Interfaces;
using PARR.DAL.NextRunServices; using PARR.DAL.NextRunServices;
using PARR.DAL.Services.Interfaces;
namespace PARR.API.Controllers.V1 namespace PARR.API.Controllers.V1
@@ -18,13 +18,13 @@ namespace PARR.API.Controllers.V1
private readonly IClientService clientService; private readonly IClientService clientService;
private readonly IRedisCacheService redisCacheService; private readonly IRedisCacheService redisCacheService;
private readonly INextRunService nextRunService; private readonly INextRunService nextRunService;
private readonly ITemplateService templateService; private readonly ITemplateRepository templateService;
public TestController( public TestController(
IClientService clientService, IClientService clientService,
IRedisCacheService redisCacheService, IRedisCacheService redisCacheService,
INextRunService nextRunService, INextRunService nextRunService,
ITemplateService templateService, ITemplateRepository templateService,
MqSettings mqSettings MqSettings mqSettings
) )
{ {

View File

@@ -11,10 +11,10 @@ using PARR.API.Contracts.V1.Responses.Base;
using PARR.API.Controllers.V1.Base; using PARR.API.Controllers.V1.Base;
using PARR.API.Extensions; using PARR.API.Extensions;
using PARR.API.Services.Interfaces; using PARR.API.Services.Interfaces;
using PARR.DAL.Models; using PARR.Core.Repositories.Interfaces;
using PARR.DAL.Services.Interfaces;
using PARR.Domain.Common.Pagination; using PARR.Domain.Common.Pagination;
using PARR.Domain.Common.Roles; using PARR.Domain.Common.Roles;
using PARR.Domain.Entities;
namespace PARR.API.Controllers.V1 namespace PARR.API.Controllers.V1
{ {
@@ -26,14 +26,14 @@ namespace PARR.API.Controllers.V1
{ {
private readonly ILogger<TnkController> logger; private readonly ILogger<TnkController> logger;
private readonly IMapper mapper; private readonly IMapper mapper;
private readonly ITnkService tnkService; private readonly ITnkRepository tnkService;
private readonly IValidator<TnkRequest> validator; private readonly IValidator<TnkRequest> validator;
private readonly IUriService uriService; private readonly IUriService uriService;
public TnkController( public TnkController(
ILogger<TnkController> logger, ILogger<TnkController> logger,
IMapper mapper, IMapper mapper,
ITnkService tnkService, ITnkRepository tnkService,
IValidator<TnkRequest> validator, IValidator<TnkRequest> validator,
IUriService uriService IUriService uriService
) )

View File

@@ -8,12 +8,11 @@ using PARR.API.Contracts.V1.Responses;
using PARR.API.Contracts.V1.Responses.Base; using PARR.API.Contracts.V1.Responses.Base;
using PARR.API.Controllers.V1.Base; using PARR.API.Controllers.V1.Base;
using PARR.API.Extensions; using PARR.API.Extensions;
using PARR.BLL.Helpers;
using PARR.Core.Common.Helpers; using PARR.Core.Common.Helpers;
using PARR.DAL.Models.Unit; using PARR.Core.Repositories.Interfaces.Unit;
using PARR.DAL.Services.Interfaces.Unit;
using PARR.Domain.Common.Pagination; using PARR.Domain.Common.Pagination;
using PARR.Domain.Common.Roles; using PARR.Domain.Common.Roles;
using PARR.Domain.Entities.Unit;
namespace PARR.API.Controllers.V1 namespace PARR.API.Controllers.V1
{ {
@@ -21,11 +20,11 @@ namespace PARR.API.Controllers.V1
public class UnitController : BaseApiController public class UnitController : BaseApiController
{ {
private readonly IMapper mapper; private readonly IMapper mapper;
private readonly IUnitService unitService; private readonly IUnitRepository unitService;
public UnitController( public UnitController(
IMapper mapper, IMapper mapper,
IUnitService unitService IUnitRepository unitService
) )
{ {
this.mapper = mapper; this.mapper = mapper;

View File

@@ -6,7 +6,7 @@ using PARR.API.Contracts.V1;
using PARR.API.Contracts.V1.Responses; using PARR.API.Contracts.V1.Responses;
using PARR.API.Contracts.V1.Responses.Base; using PARR.API.Contracts.V1.Responses.Base;
using PARR.API.Controllers.V1.Base; using PARR.API.Controllers.V1.Base;
using PARR.DAL.Services.Interfaces.Unit; using PARR.Core.Repositories.Interfaces.Unit;
using PARR.Domain.Common.Roles; using PARR.Domain.Common.Roles;
namespace PARR.API.Controllers.V1 namespace PARR.API.Controllers.V1
@@ -17,11 +17,11 @@ namespace PARR.API.Controllers.V1
[Authorize(Roles = ParrRoles.Administrator.Role)] [Authorize(Roles = ParrRoles.Administrator.Role)]
public class UnitFieldController : BaseApiController public class UnitFieldController : BaseApiController
{ {
private readonly IUnitFieldService unitFieldService; private readonly IUnitFieldRepository unitFieldService;
private readonly IMapper mapper; private readonly IMapper mapper;
public UnitFieldController( public UnitFieldController(
IUnitFieldService unitFieldService, IUnitFieldRepository unitFieldService,
IMapper mapper IMapper mapper
) )
{ {

View File

@@ -8,12 +8,11 @@ using PARR.API.Contracts.V1.Responses;
using PARR.API.Contracts.V1.Responses.Base; using PARR.API.Contracts.V1.Responses.Base;
using PARR.API.Controllers.V1.Base; using PARR.API.Controllers.V1.Base;
using PARR.API.Extensions; using PARR.API.Extensions;
using PARR.BLL.Helpers;
using PARR.Core.Common.Helpers; using PARR.Core.Common.Helpers;
using PARR.DAL.Models.Unit; using PARR.Core.Repositories.Interfaces.Unit;
using PARR.DAL.Services.Interfaces.Unit;
using PARR.Domain.Common.Pagination; using PARR.Domain.Common.Pagination;
using PARR.Domain.Common.Roles; using PARR.Domain.Common.Roles;
using PARR.Domain.Entities.Unit;
namespace PARR.API.Controllers.V1 namespace PARR.API.Controllers.V1
{ {
@@ -24,13 +23,13 @@ namespace PARR.API.Controllers.V1
public class UnitFieldValueController : BaseApiController public class UnitFieldValueController : BaseApiController
{ {
private readonly IMapper mapper; private readonly IMapper mapper;
private readonly IUnitFieldValueService unitFieldValueService; private readonly IUnitFieldValueRepository unitFieldValueService;
private readonly IUnitInValueService unitInValueService; private readonly IUnitInValueRepository unitInValueService;
public UnitFieldValueController( public UnitFieldValueController(
IMapper mapper, IMapper mapper,
IUnitFieldValueService unitFieldValueService, IUnitFieldValueRepository unitFieldValueService,
IUnitInValueService unitInValueService IUnitInValueRepository unitInValueService
) )
{ {
this.mapper = mapper; this.mapper = mapper;

View File

@@ -11,10 +11,10 @@ using PARR.API.Contracts.V1.Responses.Base;
using PARR.API.Controllers.V1.Base; using PARR.API.Controllers.V1.Base;
using PARR.API.Extensions; using PARR.API.Extensions;
using PARR.API.Services.Interfaces; using PARR.API.Services.Interfaces;
using PARR.DAL.Models; using PARR.Core.Repositories.Interfaces;
using PARR.DAL.Services.Interfaces;
using PARR.Domain.Common.Pagination; using PARR.Domain.Common.Pagination;
using PARR.Domain.Common.Roles; using PARR.Domain.Common.Roles;
using PARR.Domain.Entities;
namespace PARR.API.Controllers.V1 namespace PARR.API.Controllers.V1
{ {
@@ -25,14 +25,14 @@ namespace PARR.API.Controllers.V1
public class UserController : BaseApiController public class UserController : BaseApiController
{ {
private readonly IMapper mapper; private readonly IMapper mapper;
private readonly IUserService userService; private readonly IUserRepository userService;
private readonly IValidator<UserRequest> validator; private readonly IValidator<UserRequest> validator;
private readonly IUriService uriService; private readonly IUriService uriService;
private readonly ILogger<UserController> logger; private readonly ILogger<UserController> logger;
public UserController( public UserController(
IMapper mapper, IMapper mapper,
IUserService userService, IUserRepository userService,
IValidator<UserRequest> validator, IValidator<UserRequest> validator,
IUriService uriService, IUriService uriService,
ILogger<UserController> logger ILogger<UserController> logger

View File

@@ -8,9 +8,9 @@ using PARR.API.Contracts.V1.Responses;
using PARR.API.Contracts.V1.Responses.Base; using PARR.API.Contracts.V1.Responses.Base;
using PARR.API.Controllers.V1.Base; using PARR.API.Controllers.V1.Base;
using PARR.API.Services.Interfaces; using PARR.API.Services.Interfaces;
using PARR.DAL.Models; using PARR.Core.Repositories.Interfaces;
using PARR.DAL.Services.Interfaces;
using PARR.Domain.Common.Roles; using PARR.Domain.Common.Roles;
using PARR.Domain.Entities;
namespace PARR.API.Controllers.V1 namespace PARR.API.Controllers.V1
{ {
@@ -20,18 +20,18 @@ namespace PARR.API.Controllers.V1
[Authorize(Roles = ParrRoles.Administrator.Role)] [Authorize(Roles = ParrRoles.Administrator.Role)]
public class UserRoleController : BaseApiController public class UserRoleController : BaseApiController
{ {
private readonly IUserService userService; private readonly IUserRepository userService;
private readonly IMapper mapper; private readonly IMapper mapper;
private readonly ILogger<UserRoleController> logger; private readonly ILogger<UserRoleController> logger;
private readonly IRoleService roleService; private readonly IRoleRepository roleService;
private readonly IAuthService authService; private readonly IAuthService authService;
private readonly IUriService uriService; private readonly IUriService uriService;
public UserRoleController( public UserRoleController(
IUserService userService, IUserRepository userService,
IMapper mapper, IMapper mapper,
ILogger<UserRoleController> logger, ILogger<UserRoleController> logger,
IRoleService roleService, IRoleRepository roleService,
IAuthService authService, IAuthService authService,
IUriService uriService IUriService uriService
) )

View File

@@ -11,10 +11,10 @@ using PARR.API.Contracts.V1.Responses.Base;
using PARR.API.Controllers.V1.Base; using PARR.API.Controllers.V1.Base;
using PARR.API.Extensions; using PARR.API.Extensions;
using PARR.API.Services.Interfaces; using PARR.API.Services.Interfaces;
using PARR.DAL.Models; using PARR.Core.Repositories.Interfaces;
using PARR.DAL.Services.Interfaces;
using PARR.Domain.Common.Pagination; using PARR.Domain.Common.Pagination;
using PARR.Domain.Common.Roles; using PARR.Domain.Common.Roles;
using PARR.Domain.Entities;
namespace PARR.API.Controllers.V1 namespace PARR.API.Controllers.V1
{ {
@@ -25,13 +25,13 @@ namespace PARR.API.Controllers.V1
public class WeekendController : BaseApiController public class WeekendController : BaseApiController
{ {
private readonly IMapper mapper; private readonly IMapper mapper;
private readonly IWeekendDayService weekendDayService; private readonly IWeekendDayRepository weekendDayService;
private readonly IUriService uriService; private readonly IUriService uriService;
private readonly IValidator<WeekendRequest> validator; private readonly IValidator<WeekendRequest> validator;
public WeekendController( public WeekendController(
IMapper mapper, IMapper mapper,
IWeekendDayService weekendDayService, IWeekendDayRepository weekendDayService,
IUriService uriService, IUriService uriService,
IValidator<WeekendRequest> validator IValidator<WeekendRequest> validator
) )

View File

@@ -2,12 +2,13 @@
using PARR.API.Authentication.Models; using PARR.API.Authentication.Models;
using PARR.API.Contracts.V1.Responses; using PARR.API.Contracts.V1.Responses;
using PARR.API.MappingProfiles.Resolvers; using PARR.API.MappingProfiles.Resolvers;
using PARR.Core.Repositories.Interfaces.Schedule;
using PARR.DAL.DomainModels; using PARR.DAL.DomainModels;
using PARR.DAL.Models; using PARR.Domain.Entities;
using PARR.DAL.Models.Job;
using PARR.DAL.Models.Schedule;
using PARR.DAL.Models.Unit;
using PARR.Domain.Entities.Base.History; using PARR.Domain.Entities.Base.History;
using PARR.Domain.Entities.Job;
using PARR.Domain.Entities.Schedule;
using PARR.Domain.Entities.Unit;
namespace PARR.API.MappingProfiles namespace PARR.API.MappingProfiles
{ {
@@ -69,7 +70,7 @@ namespace PARR.API.MappingProfiles
.ForMember(d => d.Script, o => o.MapFrom(s => s.AgentScript)) .ForMember(d => d.Script, o => o.MapFrom(s => s.AgentScript))
.ForMember(d => d.TimeOutSec, o => o.MapFrom(s => s.AgentTimeOutSec)); .ForMember(d => d.TimeOutSec, o => o.MapFrom(s => s.AgentTimeOutSec));
CreateMap<DAL.Models.TaskStatus, TaskStatusResponse>(); CreateMap<PARR.Domain.Entities.TaskStatus, TaskStatusResponse>();
#region ScheduleResponseAreaTimeOffsetResponse #region ScheduleResponseAreaTimeOffsetResponse
@@ -236,7 +237,7 @@ namespace PARR.API.MappingProfiles
CreateMap<Robot, RobotResponse>(); CreateMap<Robot, RobotResponse>();
CreateMap<DAL.Models.TaskStatus, TaskStatusResponse>(); CreateMap<PARR.Domain.Entities.TaskStatus, TaskStatusResponse>();
CreateMap<RobotConfiguration, RobotConfigurationResponse>() CreateMap<RobotConfiguration, RobotConfigurationResponse>()
.ForMember(d => d.Robot, o => o.MapFrom(s => s.Robot)) .ForMember(d => d.Robot, o => o.MapFrom(s => s.Robot))

View File

@@ -1,8 +1,8 @@
using AutoMapper; using AutoMapper;
using PARR.API.Contracts.V1.Requests; using PARR.API.Contracts.V1.Requests;
using PARR.API.Contracts.V1.Requests.Queries; using PARR.API.Contracts.V1.Requests.Queries;
using PARR.DAL.Models.Job;
using PARR.Domain.Common.Pagination; using PARR.Domain.Common.Pagination;
using PARR.Domain.Entities.Job;
namespace PARR.API.MappingProfiles namespace PARR.API.MappingProfiles
{ {

View File

@@ -1,16 +1,16 @@
using AutoMapper; using AutoMapper;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
using PARR.API.Contracts.V1.Responses; using PARR.API.Contracts.V1.Responses;
using PARR.DAL.Services.Interfaces; using PARR.Core.Repositories.Interfaces;
using PARR.Domain.Entities.Base.History; using PARR.Domain.Entities.Base.History;
namespace PARR.API.MappingProfiles.Resolvers namespace PARR.API.MappingProfiles.Resolvers
{ {
public class HistoryInitiatorParrComponentResolver : IValueResolver<IHistoryInitiator, HistoryInitiatorResponse, ParrComponentResponse?> public class HistoryInitiatorParrComponentResolver : IValueResolver<IHistoryInitiator, HistoryInitiatorResponse, ParrComponentResponse?>
{ {
private readonly IParrComponentService parrComponentService; private readonly IParrComponentRepository parrComponentService;
public HistoryInitiatorParrComponentResolver(IParrComponentService parrComponentService) public HistoryInitiatorParrComponentResolver(IParrComponentRepository parrComponentService)
{ {
this.parrComponentService = parrComponentService; this.parrComponentService = parrComponentService;
} }

View File

@@ -1,16 +1,16 @@
using AutoMapper; using AutoMapper;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
using PARR.API.Contracts.V1.Responses; using PARR.API.Contracts.V1.Responses;
using PARR.DAL.Services.Interfaces; using PARR.Core.Repositories.Interfaces;
using PARR.Domain.Entities.Base.History; using PARR.Domain.Entities.Base.History;
namespace PARR.API.MappingProfiles.Resolvers namespace PARR.API.MappingProfiles.Resolvers
{ {
public class HistoryInitiatorUserResolver : IValueResolver<IHistoryInitiator, HistoryInitiatorResponse, UserBaseResponse?> public class HistoryInitiatorUserResolver : IValueResolver<IHistoryInitiator, HistoryInitiatorResponse, UserBaseResponse?>
{ {
private readonly IUserService userService; private readonly IUserRepository userService;
public HistoryInitiatorUserResolver(IUserService userService) public HistoryInitiatorUserResolver(IUserRepository userService)
{ {
this.userService = userService; this.userService = userService;
} }

View File

@@ -1,26 +1,25 @@
using AutoMapper; using AutoMapper;
using PARR.API.Contracts.V1.Responses; using PARR.API.Contracts.V1.Responses;
using PARR.Core.Repositories.Interfaces.Schedule;
using PARR.DAL.Contracts; using PARR.DAL.Contracts;
using PARR.DAL.Models.Job; using PARR.Domain.Entities.Job;
using PARR.DAL.Services.Interfaces;
using PARR.DAL.Services.Interfaces.Schedule;
namespace PARR.API.MappingProfiles.Resolvers namespace PARR.API.MappingProfiles.Resolvers
{ {
public class JobGroupScheduleResolver : IValueResolver<JobGroup, JobGroupResponse, JobGroupScheduleResponse?> public class JobGroupScheduleResolver : IValueResolver<JobGroup, JobGroupResponse, JobGroupScheduleResponse?>
{ {
private readonly IEsppSchTypeConfigService esppConfigService; private readonly IEsppSchTypeConfigRepository esppConfigService;
private readonly ILogger<JobGroupScheduleResolver> logger; private readonly ILogger<JobGroupScheduleResolver> logger;
private readonly IMapper mapper; private readonly IMapper mapper;
private readonly SettingsFromDb settingsFromDb; private readonly SettingsFromDb settingsFromDb;
private readonly IScheduleResponseAreaTimeOffsetService scheduleResponseAreaTimeOffsetService; private readonly IScheduleResponseAreaTimeOffsetRepository scheduleResponseAreaTimeOffsetService;
public JobGroupScheduleResolver( public JobGroupScheduleResolver(
IEsppSchTypeConfigService esppConfigService, IEsppSchTypeConfigRepository esppConfigService,
ILogger<JobGroupScheduleResolver> logger, ILogger<JobGroupScheduleResolver> logger,
IMapper mapper, IMapper mapper,
SettingsFromDb settingsFromDb, SettingsFromDb settingsFromDb,
IScheduleResponseAreaTimeOffsetService scheduleResponseAreaTimeOffsetService IScheduleResponseAreaTimeOffsetRepository scheduleResponseAreaTimeOffsetService
) )
{ {
this.esppConfigService = esppConfigService; this.esppConfigService = esppConfigService;

View File

@@ -1,9 +1,4 @@
using AutoMapper; namespace PARR.API.MappingProfiles.Resolvers
using PARR.API.Contracts.V1.Responses;
using PARR.DAL.Contracts;
using PARR.DAL.Models;
namespace PARR.API.MappingProfiles.Resolvers
{ {
//public class RobotTaskScheduleExcludeCalendarResolver : IValueResolver<RobotConfiguration, RobotTaskScheduleResponse, string?> //public class RobotTaskScheduleExcludeCalendarResolver : IValueResolver<RobotConfiguration, RobotTaskScheduleResponse, string?>
//{ //{

View File

@@ -1,9 +1,4 @@
using AutoMapper; namespace PARR.API.MappingProfiles.Resolvers
using PARR.API.Contracts.V1.Responses;
using PARR.DAL.Contracts;
using PARR.DAL.Models;
namespace PARR.API.MappingProfiles.Resolvers
{ {
//public class RobotTaskScheduleExcludeResolver : IValueResolver<RobotConfiguration, RobotTaskScheduleResponse, string> //public class RobotTaskScheduleExcludeResolver : IValueResolver<RobotConfiguration, RobotTaskScheduleResponse, string>
//{ //{

View File

@@ -1,11 +1,4 @@
using AutoMapper; namespace PARR.API.MappingProfiles.Resolvers
using PARR.API.Contracts.V1.Responses;
using PARR.BLL.Helpers;
using PARR.DAL.Contracts;
using PARR.DAL.Models;
namespace PARR.API.MappingProfiles.Resolvers
{ {
//public class RobotTaskScheduleGenerationTimeResolver : IValueResolver<RobotConfiguration, RobotTaskScheduleResponse, string> //public class RobotTaskScheduleGenerationTimeResolver : IValueResolver<RobotConfiguration, RobotTaskScheduleResponse, string>
//{ //{

View File

@@ -1,11 +1,4 @@
using AutoMapper; namespace PARR.API.MappingProfiles.Resolvers
using PARR.API.Contracts.V1.Responses;
using PARR.BLL.Helpers;
using PARR.DAL.Contracts;
using PARR.DAL.Models;
using PARR.DAL.Services.Interfaces.Schedule;
namespace PARR.API.MappingProfiles.Resolvers
{ {
//public class RobotTaskScheduleNextStartResolver : IValueResolver<RobotConfiguration, RobotTaskScheduleResponse, string> //public class RobotTaskScheduleNextStartResolver : IValueResolver<RobotConfiguration, RobotTaskScheduleResponse, string>
//{ //{

View File

@@ -1,7 +1,7 @@
using AutoMapper; using AutoMapper;
using PARR.API.Contracts.V1.Responses; using PARR.API.Contracts.V1.Responses;
using PARR.DAL.Contracts; using PARR.DAL.Contracts;
using PARR.DAL.Models; using PARR.Domain.Entities;
namespace PARR.API.MappingProfiles.Resolvers namespace PARR.API.MappingProfiles.Resolvers
{ {

View File

@@ -1,18 +1,18 @@
using AutoMapper; using AutoMapper;
using PARR.API.Contracts.V1.Responses; using PARR.API.Contracts.V1.Responses;
using PARR.DAL.Models; using PARR.Core.Repositories.Interfaces.Schedule;
using PARR.DAL.Services.Interfaces; using PARR.Domain.Entities;
namespace PARR.API.MappingProfiles.Resolvers namespace PARR.API.MappingProfiles.Resolvers
{ {
public class RobotTaskScheduleSchResolver : IValueResolver<RobotConfiguration, RobotTaskScheduleResponse, List<RobotTaskScheduleSchResponse>?> public class RobotTaskScheduleSchResolver : IValueResolver<RobotConfiguration, RobotTaskScheduleResponse, List<RobotTaskScheduleSchResponse>?>
{ {
private readonly IEsppSchTypeConfigService esppConfigService; private readonly IEsppSchTypeConfigRepository esppConfigService;
private readonly ILogger<RobotTaskScheduleSchResolver> logger; private readonly ILogger<RobotTaskScheduleSchResolver> logger;
public RobotTaskScheduleSchResolver( public RobotTaskScheduleSchResolver(
IEsppSchTypeConfigService esppConfigService, IEsppSchTypeConfigRepository esppConfigService,
ILogger<RobotTaskScheduleSchResolver> logger ILogger<RobotTaskScheduleSchResolver> logger
) )
{ {

View File

@@ -1,9 +1,4 @@
using AutoMapper; namespace PARR.API.MappingProfiles.Resolvers
using PARR.API.Contracts.V1.Responses;
using PARR.DAL.Contracts;
using PARR.DAL.Models;
namespace PARR.API.MappingProfiles.Resolvers
{ {
//public class RobotTaskScheduleTimezoneResolver : IValueResolver<RobotConfiguration, RobotTaskScheduleResponse, string> //public class RobotTaskScheduleTimezoneResolver : IValueResolver<RobotConfiguration, RobotTaskScheduleResponse, string>
//{ //{

View File

@@ -1,7 +1,7 @@
using AutoMapper; using AutoMapper;
using PARR.API.Contracts.V1.Responses; using PARR.API.Contracts.V1.Responses;
using PARR.DAL.Contracts; using PARR.DAL.Contracts;
using PARR.DAL.Models; using PARR.Domain.Entities;
namespace PARR.API.MappingProfiles.Resolvers namespace PARR.API.MappingProfiles.Resolvers
{ {

View File

@@ -1,7 +1,7 @@
using AutoMapper; using AutoMapper;
using PARR.API.Contracts.V1.Responses; using PARR.API.Contracts.V1.Responses;
using PARR.DAL.Contracts; using PARR.DAL.Contracts;
using PARR.DAL.Models; using PARR.Domain.Entities;
namespace PARR.API.MappingProfiles.Resolvers namespace PARR.API.MappingProfiles.Resolvers
{ {

View File

@@ -1,7 +1,7 @@
using AutoMapper; using AutoMapper;
using PARR.API.Contracts.V1.Responses; using PARR.API.Contracts.V1.Responses;
using PARR.DAL.Contracts; using PARR.DAL.Contracts;
using PARR.DAL.Models; using PARR.Domain.Entities;
namespace PARR.API.MappingProfiles.Resolvers namespace PARR.API.MappingProfiles.Resolvers
{ {

View File

@@ -1,7 +1,7 @@
using AutoMapper; using AutoMapper;
using PARR.API.Contracts.V1.Responses; using PARR.API.Contracts.V1.Responses;
using PARR.DAL.Contracts; using PARR.DAL.Contracts;
using PARR.DAL.Models; using PARR.Domain.Entities;
namespace PARR.API.MappingProfiles.Resolvers namespace PARR.API.MappingProfiles.Resolvers
{ {

View File

@@ -1,7 +1,7 @@
using AutoMapper; using AutoMapper;
using PARR.API.Contracts.V1.Responses; using PARR.API.Contracts.V1.Responses;
using PARR.DAL.Contracts; using PARR.DAL.Contracts;
using PARR.DAL.Models; using PARR.Domain.Entities;
namespace PARR.API.MappingProfiles.Resolvers namespace PARR.API.MappingProfiles.Resolvers
{ {

View File

@@ -1,7 +1,7 @@
using AutoMapper; using AutoMapper;
using PARR.API.Contracts.V1.Responses; using PARR.API.Contracts.V1.Responses;
using PARR.DAL.Contracts; using PARR.DAL.Contracts;
using PARR.DAL.Models; using PARR.Domain.Entities;
namespace PARR.API.MappingProfiles.Resolvers namespace PARR.API.MappingProfiles.Resolvers
{ {

View File

@@ -1,26 +1,25 @@
using AutoMapper; using AutoMapper;
using PARR.API.Contracts.V1.Responses; using PARR.API.Contracts.V1.Responses;
using PARR.Core.Repositories.Interfaces.Schedule;
using PARR.DAL.Contracts; using PARR.DAL.Contracts;
using PARR.DAL.Models; using PARR.Domain.Entities;
using PARR.DAL.Services.Interfaces;
using PARR.DAL.Services.Interfaces.Schedule;
namespace PARR.API.MappingProfiles.Resolvers namespace PARR.API.MappingProfiles.Resolvers
{ {
public class TemplateScheduleResolver : IValueResolver<Template, TemplateResponse, EsppScheduleResponse?> public class TemplateScheduleResolver : IValueResolver<Template, TemplateResponse, EsppScheduleResponse?>
{ {
private readonly IEsppSchTypeConfigService esppConfigService; private readonly IEsppSchTypeConfigRepository esppConfigService;
private readonly ILogger<TemplateScheduleResolver> logger; private readonly ILogger<TemplateScheduleResolver> logger;
private readonly IMapper mapper; private readonly IMapper mapper;
private readonly SettingsFromDb settingsFromDb; private readonly SettingsFromDb settingsFromDb;
private readonly IScheduleResponseAreaTimeOffsetService scheduleResponseAreaTimeOffsetService; private readonly IScheduleResponseAreaTimeOffsetRepository scheduleResponseAreaTimeOffsetService;
public TemplateScheduleResolver( public TemplateScheduleResolver(
IEsppSchTypeConfigService esppConfigService, IEsppSchTypeConfigRepository esppConfigService,
ILogger<TemplateScheduleResolver> logger, ILogger<TemplateScheduleResolver> logger,
IMapper mapper, IMapper mapper,
SettingsFromDb settingsFromDb, SettingsFromDb settingsFromDb,
IScheduleResponseAreaTimeOffsetService scheduleResponseAreaTimeOffsetService IScheduleResponseAreaTimeOffsetRepository scheduleResponseAreaTimeOffsetService
) )
{ {
this.esppConfigService = esppConfigService; this.esppConfigService = esppConfigService;

View File

@@ -24,7 +24,7 @@ builder.Host.UseSerilog((context, config) =>
builder.Services.InstallSettings(builder.Configuration); builder.Services.InstallSettings(builder.Configuration);
// Add services to the container. // Add services to the container.
builder.Services.InstallDalServices(builder.Configuration); builder.Services.AddDalServices(builder.Configuration);
//---- new ---- //---- new ----
builder.Services.AddCoreServices(builder.Configuration); builder.Services.AddCoreServices(builder.Configuration);
builder.Services.AddTaskManagement(mqSettingsFactory: (provider, taskType) => builder.Services.AddTaskManagement(mqSettingsFactory: (provider, taskType) =>

View File

@@ -4,8 +4,8 @@ using PARR.API.Domain.InfluxDbModels;
using PARR.API.Services.Interfaces; using PARR.API.Services.Interfaces;
using PARR.API.Settings; using PARR.API.Settings;
using PARR.Core.Common.Interfaces; using PARR.Core.Common.Interfaces;
using PARR.DAL.Services.Interfaces; using PARR.Core.Repositories.Interfaces;
using PARR.DAL.Services.Interfaces.Unit; using PARR.Core.Repositories.Interfaces.Unit;
using PARR.Domain.Common.Roles; using PARR.Domain.Common.Roles;
using PARR.Domain.Settings; using PARR.Domain.Settings;
@@ -14,21 +14,21 @@ namespace PARR.API.Services.Implementations
public class AuthService : IAuthService public class AuthService : IAuthService
{ {
private readonly IRedisCacheService cacheService; private readonly IRedisCacheService cacheService;
private readonly IUserService userService; private readonly IUserRepository userService;
private readonly UserCacheSettings userCacheSettings; private readonly UserCacheSettings userCacheSettings;
private readonly IClientService clientService; private readonly IClientService clientService;
private readonly IInfluxDbService influxDbService; private readonly IInfluxDbService influxDbService;
private readonly InfluxDbSettings influxDbSettings; private readonly InfluxDbSettings influxDbSettings;
private readonly IUnitService unitService; private readonly IUnitRepository unitService;
public AuthService( public AuthService(
IRedisCacheService cacheService, IRedisCacheService cacheService,
IUserService userService, IUserRepository userService,
UserCacheSettings userCacheSettings, UserCacheSettings userCacheSettings,
IClientService clientService, IClientService clientService,
IInfluxDbService influxDbService, IInfluxDbService influxDbService,
InfluxDbSettings influxDbSettings, InfluxDbSettings influxDbSettings,
IUnitService unitService IUnitRepository unitService
) )
{ {
this.cacheService = cacheService; this.cacheService = cacheService;

View File

@@ -1,7 +1,4 @@
using PARR.API.Contracts.V1.Requests.Queries; namespace PARR.API.Services.Interfaces
using PARR.DAL.Models;
namespace PARR.API.Services.Interfaces
{ {
/// <summary> /// <summary>
/// Сервисы по формированию статистики загрузки рабочих групп/ЗО, и тд регламентными работами /// Сервисы по формированию статистики загрузки рабочих групп/ЗО, и тд регламентными работами

View File

@@ -1,13 +1,13 @@
using FluentValidation; using FluentValidation;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
using PARR.API.Contracts.V1.Requests; using PARR.API.Contracts.V1.Requests;
using PARR.DAL.Services.Interfaces.Job; using PARR.Core.Repositories.Interfaces.Job;
namespace PARR.API.Validators namespace PARR.API.Validators
{ {
public class DistributeRequestValidator : AbstractValidator<DistributeRequest> public class DistributeRequestValidator : AbstractValidator<DistributeRequest>
{ {
public DistributeRequestValidator(IJobGroupService jobGroupService) public DistributeRequestValidator(IJobGroupRepository jobGroupService)
{ {
RuleFor(t => t.JobGroupId).NotEmpty().MustAsync(async (entity, value, c) => RuleFor(t => t.JobGroupId).NotEmpty().MustAsync(async (entity, value, c) =>
{ {

View File

@@ -1,12 +1,10 @@
using FluentValidation; using FluentValidation;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
using Newtonsoft.Json.Linq;
using PARR.API.Contracts.V1.Requests; using PARR.API.Contracts.V1.Requests;
using PARR.DAL.Contracts; using PARR.Core.Repositories.Interfaces;
using PARR.DAL.Services.Interfaces; using PARR.Core.Repositories.Interfaces.Job;
using PARR.DAL.Services.Interfaces.Job; using PARR.Core.Repositories.Interfaces.Schedule;
using PARR.DAL.Services.Interfaces.Schedule; using PARR.Core.Repositories.Interfaces.Unit;
using PARR.DAL.Services.Interfaces.Unit;
using PARR.Domain.Enums; using PARR.Domain.Enums;
namespace PARR.API.Validators namespace PARR.API.Validators
@@ -14,11 +12,11 @@ namespace PARR.API.Validators
public class JobGroupValidator : AbstractValidator<JobGroupRequest> public class JobGroupValidator : AbstractValidator<JobGroupRequest>
{ {
public JobGroupValidator( public JobGroupValidator(
IJobGroupTypeService jobGroupTypeService, IJobGroupTypeRepository jobGroupTypeService,
IUnitFieldService unitFieldService, IUnitFieldRepository unitFieldService,
IScheduleExcludeTypeService scheduleExcludeTypeService, IScheduleExcludeTypeRepository scheduleExcludeTypeService,
IScheduleExcludeTypeCalendarService scheduleExcludeTypeCalendarService, IScheduleExcludeTypeCalendarRepository scheduleExcludeTypeCalendarService,
IDistributionPeriodService distributionPeriodService IDistributionPeriodRepository distributionPeriodService
) )
{ {
RuleFor(t => t.Name) RuleFor(t => t.Name)

View File

@@ -1,25 +1,25 @@
using FluentValidation; using FluentValidation;
using PARR.API.Contracts.V1.Requests; using PARR.API.Contracts.V1.Requests;
using PARR.DAL.Models.Job; using PARR.Core.Repositories.Interfaces;
using PARR.DAL.Services.Interfaces; using PARR.Core.Repositories.Interfaces.Job;
using PARR.DAL.Services.Interfaces.Job; using PARR.Core.Repositories.Interfaces.Unit;
using PARR.DAL.Services.Interfaces.Unit; using PARR.Domain.Entities.Job;
namespace PARR.API.Validators namespace PARR.API.Validators
{ {
public class JobRequestValidator : AbstractValidator<JobRequest> public class JobRequestValidator : AbstractValidator<JobRequest>
{ {
private readonly ITnkService tnkService; private readonly ITnkRepository tnkService;
private readonly IJobGroupService jobGroupService; private readonly IJobGroupRepository jobGroupService;
private readonly IJobService jobService; private readonly IJobRepository jobService;
private readonly IUnitFieldService unitFieldService; private readonly IUnitFieldRepository unitFieldService;
private JobGroup? jobGroup; private JobGroup? jobGroup;
public JobRequestValidator( public JobRequestValidator(
ITnkService tnkService, ITnkRepository tnkService,
IJobGroupService jobGroupService, IJobGroupRepository jobGroupService,
IJobService jobService, IJobRepository jobService,
IUnitFieldService unitFieldService IUnitFieldRepository unitFieldService
) )
{ {
this.tnkService = tnkService; this.tnkService = tnkService;

View File

@@ -1,16 +1,16 @@
using FluentValidation; using FluentValidation;
using PARR.API.Contracts.V1.Requests; using PARR.API.Contracts.V1.Requests;
using PARR.DAL.Services.Interfaces; using PARR.Core.Repositories.Interfaces;
namespace PARR.API.Validators namespace PARR.API.Validators
{ {
public class SubprocessValidator : AbstractValidator<SubprocessRequest> public class SubprocessValidator : AbstractValidator<SubprocessRequest>
{ {
private readonly IProcessService processService; private readonly IProcessRepository processService;
private bool? isValid = null; private bool? isValid = null;
public SubprocessValidator( public SubprocessValidator(
IProcessService processService IProcessRepository processService
) )
{ {
this.processService = processService; this.processService = processService;

View File

@@ -1,7 +1,7 @@
using FluentValidation; using FluentValidation;
using PARR.API.Contracts.V1.Requests; using PARR.API.Contracts.V1.Requests;
using PARR.DAL.Services.Interfaces; using PARR.Core.Repositories.Interfaces;
using PARR.DAL.Services.Interfaces.Job; using PARR.Core.Repositories.Interfaces.Job;
using PARR.Domain.Enums; using PARR.Domain.Enums;
namespace PARR.API.Validators namespace PARR.API.Validators
@@ -9,9 +9,9 @@ namespace PARR.API.Validators
public class TemplateActivatorRequestValidator : AbstractValidator<TemplateActivatorRequest> public class TemplateActivatorRequestValidator : AbstractValidator<TemplateActivatorRequest>
{ {
public TemplateActivatorRequestValidator( public TemplateActivatorRequestValidator(
ITemplateService templateService, ITemplateRepository templateService,
IJobService jobService, IJobRepository jobService,
IJobGroupService jobGroupService IJobGroupRepository jobGroupService
) )
{ {
RuleFor(t => t.EntityType).Must(type => RuleFor(t => t.EntityType).Must(type =>

View File

@@ -1,16 +1,16 @@
using FluentValidation; using FluentValidation;
using PARR.API.Contracts.V1.Requests; using PARR.API.Contracts.V1.Requests;
using PARR.DAL.Services.Interfaces; using PARR.Core.Repositories.Interfaces;
namespace PARR.API.Validators namespace PARR.API.Validators
{ {
public class TnkRequestValidator : AbstractValidator<TnkRequest> public class TnkRequestValidator : AbstractValidator<TnkRequest>
{ {
private readonly ISubprocessService subprocessService; private readonly ISubprocessRepository subprocessService;
private bool? isValid = null; private bool? isValid = null;
public TnkRequestValidator( public TnkRequestValidator(
ISubprocessService subprocessService ISubprocessRepository subprocessService
) )
{ {
this.subprocessService = subprocessService; this.subprocessService = subprocessService;

View File

@@ -1,15 +1,15 @@
using FluentValidation; using FluentValidation;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
using PARR.API.Contracts.V1.Requests; using PARR.API.Contracts.V1.Requests;
using PARR.DAL.Services.Interfaces; using PARR.Core.Repositories.Interfaces;
namespace PARR.API.Validators namespace PARR.API.Validators
{ {
public class WeekendRequestValidator : AbstractValidator<WeekendRequest> public class WeekendRequestValidator : AbstractValidator<WeekendRequest>
{ {
private readonly IWeekendDayService weekendDayService; private readonly IWeekendDayRepository weekendDayService;
public WeekendRequestValidator(IWeekendDayService weekendDayService) public WeekendRequestValidator(IWeekendDayRepository weekendDayService)
{ {
this.weekendDayService = weekendDayService; this.weekendDayService = weekendDayService;

View File

@@ -1,17 +1,17 @@
using FluentValidation; using FluentValidation;
using PARR.API.Contracts.V1.Requests; using PARR.API.Contracts.V1.Requests;
using PARR.DAL.Services.Interfaces; using PARR.Core.Repositories.Interfaces;
namespace PARR.API.Validators namespace PARR.API.Validators
{ {
public class WorkRequestValidator : AbstractValidator<WorkRequest> public class WorkRequestValidator : AbstractValidator<WorkRequest>
{ {
private readonly ITnkService tnkService; private readonly ITnkRepository tnkService;
private bool? isValid = null; private bool? isValid = null;
public WorkRequestValidator( public WorkRequestValidator(
ITnkService tnkService ITnkRepository tnkService
//ITemplateMaskValidator templateMaskValidator //ITemplateMaskValidator templateMaskValidator
) )
{ {

View File

@@ -0,0 +1,9 @@
using PARR.Core.Repositories.Base;
using PARR.Domain.Entities;
namespace PARR.Core.Repositories.Interfaces
{
public interface IAgentHistoryRepository : IBaseRepository<AgentHistory>
{
}
}

View File

@@ -0,0 +1,9 @@
using PARR.Core.Repositories.Base;
using PARR.Domain.Entities;
namespace PARR.Core.Repositories.Interfaces
{
public interface IDistributionPeriodRepository : IBaseRepository<DistributionPeriod>
{
}
}

View File

@@ -0,0 +1,9 @@
using PARR.Core.Repositories.Base;
using PARR.Domain.Entities;
namespace PARR.Core.Repositories.Interfaces
{
public interface IOrderRepository : IBaseRepository<Order>
{
}
}

View File

@@ -1,10 +1,9 @@
using PARR.DAL.Contracts; using PARR.Domain.Entities;
using PARR.DAL.Models;
using PARR.Domain.Enums; using PARR.Domain.Enums;
namespace PARR.DAL.Services.Interfaces namespace PARR.Core.Repositories.Interfaces
{ {
public interface IOrderStatusService public interface IOrderStatusRepository
{ {
IQueryable<OrderStatus> Get(); IQueryable<OrderStatus> Get();
OrderStatusEnum GetOrderStatusByName(string statusName); OrderStatusEnum GetOrderStatusByName(string statusName);

View File

@@ -0,0 +1,9 @@
using PARR.Domain.Entities;
namespace PARR.Core.Repositories.Interfaces
{
public interface IParrComponentRepository
{
IQueryable<ParrComponent> Get();
}
}

View File

@@ -0,0 +1,9 @@
using PARR.Core.Repositories.Base;
using PARR.Domain.Entities;
namespace PARR.Core.Repositories.Interfaces
{
public interface IProcessRepository : IBaseRepository<Process>
{
}
}

View File

@@ -1,10 +1,10 @@
using PARR.DAL.Models; using PARR.Core.Repositories.Base;
using PARR.DAL.Services.Interfaces.Base; using PARR.Domain.Entities;
using PARR.Domain.Enums; using PARR.Domain.Enums;
namespace PARR.DAL.Services.Interfaces namespace PARR.Core.Repositories.Interfaces
{ {
public interface IRobotConfigurationService : IBaseService<RobotConfiguration> public interface IRobotConfigurationRepository : IBaseRepository<RobotConfiguration>
{ {
/// <summary> /// <summary>
/// Обновить статус работы робота /// Обновить статус работы робота

View File

@@ -0,0 +1,9 @@
using PARR.Domain.Entities;
namespace PARR.Core.Repositories.Interfaces
{
public interface IRobotHistoryLevelRepository
{
IQueryable<RobotHistoryLevel> Get();
}
}

View File

@@ -0,0 +1,9 @@
using PARR.Core.Repositories.Base;
using PARR.Domain.Entities;
namespace PARR.Core.Repositories.Interfaces
{
public interface IRobotHistoryRepository : IBaseRepository<RobotHistory>
{
}
}

View File

@@ -0,0 +1,9 @@
using PARR.Domain.Entities;
namespace PARR.Core.Repositories.Interfaces
{
public interface IRobotRepository
{
IQueryable<Robot> Get();
}
}

View File

@@ -0,0 +1,9 @@
using PARR.Domain.Entities;
namespace PARR.Core.Repositories.Interfaces
{
public interface IRobotStatusRepository
{
IQueryable<RobotStatus> Get();
}
}

View File

@@ -0,0 +1,9 @@
using PARR.Core.Repositories.Base;
using PARR.Domain.Entities;
namespace PARR.Core.Repositories.Interfaces
{
public interface IRoleRepository : IBaseRepository<Role>
{
}
}

View File

@@ -0,0 +1,7 @@
namespace PARR.Core.Repositories.Interfaces
{
public interface IStatusTemplateRepository
{
IQueryable<Domain.Entities.TaskStatus> Get();
}
}

Some files were not shown because too many files have changed in this diff Show More