feat(all): ! Критические изменения логики работы всех сервисорв, База Данных имееет неокончательную версию. Template, Scheduler переведены на работу с Unit+Job+JobGroup вместо Host+ApplicationsInWork

This commit is contained in:
Mikhail Kuznetsov
2025-06-25 14:17:34 +10:00
parent 1b867585d8
commit 03c7852378
54 changed files with 5176 additions and 989 deletions

View File

@@ -0,0 +1,17 @@
namespace PARR.API.Contracts.V1.Responses
{
public class JobBaseResponse
{
public Guid Id { get; set; }
public required string Name { get; set; }
public required string TemplateNameMask { get; set; }
public TnkResponse? Tnk { get; set; }
}
public class JobResponse : JobBaseResponse
{
}
}

View File

@@ -31,7 +31,7 @@
public required string TnkEsppId { get; set; }
public required string WorkName { get; set; }
public required string WorkEsppId { get; set; }
//public required string WorkEsppId { get; set; }
}

View File

@@ -2,7 +2,7 @@
{
public class StatHostTemplateResponse
{
public int AllHosts { get; set; }
public int AllUnits { get; set; }
public int HostsInTemplates { get; set; }
}
}

View File

@@ -25,9 +25,12 @@
public bool IsAutoDistributionEnabled { get; set; }
public HostTemplateResponse? Host { get; set; }
//public HostTemplateResponse? Host { get; set; }
public UnitBaseResponse? Unit { get; set; }
public WorkResponse? Work { get; set; }
public JobBaseResponse? Job { get; set; }
//public WorkResponse? Work { get; set; }
public ProcessResponse? Process { get; set; }
public SubprocessResponse? Subprocess { get; set; }
public TnkResponse? Tnk { get; set; }

View File

@@ -22,15 +22,4 @@
public List<AttributeResponse>? Attributes { get; set; }
}
}