feat(api): управление job auto control из api

This commit is contained in:
Mikhail Trubnikov
2025-12-08 14:23:08 +10:00
parent 4815840f64
commit 031ac7126c
10 changed files with 123 additions and 76 deletions

View File

@@ -21,6 +21,16 @@
public required string WorkName { get; set; }
#region AutoControl
public bool IsEnableAutoControl { get; set; }
public bool InitUsedTemplateState { get; set; }
public bool InitUsedScheduleState { get; set; }
#endregion
public required List<UnitFilterRequest> UnitFilters { get; set; }
}

View File

@@ -0,0 +1,13 @@
namespace PARR.API.Contracts.V1.Responses
{
public class JobAutoControlResponse
{
public Guid JobId { get; set; }
public bool IsEnable { get; set; }
public bool InitUsedTemplateState { get; set; }
public bool InitUsedScheduleState { get; set; }
}
}

View File

@@ -31,6 +31,8 @@
public List<UnitFilterResponse>? UnitFilters { get; set; }
public JobAutoControlResponse? AutoControl { get; set; }
#region Статистика
//public TemplateStats? TemplateStatistics { get; set; }