feat(api, allLogs): в TemplateResponse добавлен TemplateStatusType. Шаблоны можно фильтровать по statusType. При изменении маски имени шаблона в Job, отправляется задание в очередь на переименование связанных шаблонов. Во всех проектах перенастроены логи, в проде, не пишутся логи внутрь контейнера, только в stdout.

This commit is contained in:
Mikhail Trubnikov
2025-12-02 09:49:08 +10:00
parent 33bcd59761
commit bebbfab317
46 changed files with 472 additions and 180 deletions

View File

@@ -94,6 +94,7 @@ namespace PARR.DAL
services.AddTransient<IJobEkMaskService, JobEkMaskService>();
services.AddTransient<ITemplateHistoryService, TemplateHistoryService>();
services.AddTransient<IParrComponentService, ParrComponentService>();
services.AddTransient<ITemplateStatusTypeService, TemplateStatusTypeService>();
#region Unit

View File

@@ -0,0 +1,22 @@
using PARR.DAL.Context;
using PARR.DAL.Models;
using PARR.DAL.Services.Interfaces;
namespace PARR.DAL.Services.Implementations
{
internal class TemplateStatusTypeService : ITemplateStatusTypeService
{
private readonly DataContext dataContext;
public TemplateStatusTypeService(DataContext dataContext)
{
this.dataContext = dataContext;
}
public IQueryable<TemplateStatusType> Get()
{
return dataContext.TemplateStatusTypes;
}
}
}

View File

@@ -0,0 +1,9 @@
using PARR.DAL.Models;
namespace PARR.DAL.Services.Interfaces
{
public interface ITemplateStatusTypeService
{
IQueryable<TemplateStatusType> Get();
}
}