feat(all): ! Критические изменения логики работы всех сервисорв, База Данных имееет неокончательную версию. Template, Scheduler переведены на работу с Unit+Job+JobGroup вместо Host+ApplicationsInWork
This commit is contained in:
17
PARR.API/Contracts/V1/Responses/JobBaseResponse.cs
Normal file
17
PARR.API/Contracts/V1/Responses/JobBaseResponse.cs
Normal 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
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
{
|
||||
public class StatHostTemplateResponse
|
||||
{
|
||||
public int AllHosts { get; set; }
|
||||
public int AllUnits { get; set; }
|
||||
public int HostsInTemplates { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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; }
|
||||
|
||||
@@ -22,15 +22,4 @@
|
||||
public List<AttributeResponse>? Attributes { get; set; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user