feat(aihitRelationshipsSyncer): Реализована логика синхронизации связей между Unit+CI/CD

This commit is contained in:
Mikhail Kuznetsov
2025-05-27 11:32:05 +10:00
parent cc52818d29
commit 078c8b540f
33 changed files with 4389 additions and 6 deletions

View File

@@ -8,10 +8,10 @@ using PARR.TemplateDistributor;
IHost host = Host.CreateDefaultBuilder(args)
.ConfigureServices((hostContext, services) =>
{
services.InstallEsppApiServices(hostContext.Configuration);
services.InstallBllServices(hostContext.Configuration);
//services.InstallEsppApiServices(hostContext.Configuration);
//services.InstallBllServices(hostContext.Configuration);
services.InstallDalServices(hostContext.Configuration);
services.InstallTemplateDistributorSerivces(hostContext.Configuration);
//services.InstallTemplateDistributorSerivces(hostContext.Configuration);
services.AddHostedService<Worker>();
})

View File

@@ -2,6 +2,7 @@ using Microsoft.EntityFrameworkCore;
using PARR.BLL.Services.Interfaces;
using PARR.Constants;
using PARR.DAL.Services.Interfaces;
using PARR.DAL.Services.Interfaces.Unit;
using PARR.EsppApi;
using PARR.EsppApi.Constants;
using PARR.EsppApi.Models.Query;
@@ -42,6 +43,23 @@ namespace PARR.Test
#endregion
#region unit
//using (var scope = serviceProvider.CreateScope())
//{
// var service = scope.ServiceProvider.GetService<IUnitService>();
// var unit = await service.Get().Include(t => t.Parents).Include(t => t.Childs).FirstOrDefaultAsync(t => t.Id == Guid.Parse("0f89e2ec-0e4d-4de6-b990-c55e8308accf"));
// var parent = unit?.Parents;
//}
#endregion
#region Calendar
//var testCalendar = new BLL.Services.Implementations.Test(calendarService);