feat(api): в ApplicationInWork добавлена информация о статусах AutoControl

This commit is contained in:
Mikhail Trubnikov
2024-09-11 14:59:37 +10:00
parent a8416564c2
commit 295a95c22a
4 changed files with 21 additions and 14 deletions

View File

@@ -47,6 +47,8 @@
public ApplicationInWorkScheduleResponse? Schedule { get; set; }
public List<WorkGroupResponse>? WorkGroups { get; set; }
public JobAutoControlBaseResponse? AutoControl { get; set; }
}

View File

@@ -1,11 +1,7 @@
namespace PARR.API.Contracts.V1.Responses
{
public class JobAutoControlResponse
public class JobAutoControlBaseResponse
{
public Guid Id { get; set; }
public Guid ApplicationInWorkId { get; set; }
/// <summary>
/// Создавать новые РР (из настроке РР)
/// </summary>
@@ -20,6 +16,13 @@
/// Активировать РР после смены ЭК (согласно настройкам статусов ЭК)
/// </summary>
public bool Activate { get; set; }
}
public class JobAutoControlResponse : JobAutoControlBaseResponse
{
public Guid Id { get; set; }
public Guid ApplicationInWorkId { get; set; }
/// <summary>
/// Состояние для активированных РР, шаблоны
@@ -49,12 +52,7 @@
/// <summary>
/// Статусы ЭК для которых включена генерация РР и активация
/// </summary>
public List<EkStatusResponse>? EnabledEkStatuses{ get; set; }
/// <summary>
/// Краткое описание
/// </summary>
public required string ShortDescription { get; set; }
public List<EkStatusResponse>? EnabledEkStatuses { get; set; }
/// <summary>
/// Рабочие группы