fix(API,DAL): Восстановлена работа контроллеров RobotTask, TemplateActivator, Template

This commit is contained in:
Mikhail Kuznetsov
2025-06-27 13:42:13 +10:00
parent 03c7852378
commit 91ddd2ae96
12 changed files with 71 additions and 65 deletions

View File

@@ -394,9 +394,9 @@
/// </summary>
public static class TemplateActivator
{
public const string SendRequest = Base + "/jobs/" + appInWorkId + "/template-activator";
public const string SendRequest = Base + "/jobs/" + jobId + "/template-activator";
public const string appInWorkId = "{applicationInWorkId}";
public const string jobId = "{jobId}";
}
#endregion

View File

@@ -8,14 +8,14 @@
//public int? StatusCode { get; set; }
/// <summary>
/// Поиск по маске. Например: "*-ДВС"
/// Поиск по маске. Например: "ДВС-*"
/// </summary>
public string? Mask { get; set; }
/// <summary>
/// Поиск по ИД Задания (ApplicationInWorkId)
/// Поиск по ИД Задания (JobGroupId)
/// </summary>
public Guid? AppInWorkId { get; set; }
public Guid? JobGroupId { get; set; }
}
}

View File

@@ -3,36 +3,43 @@
public class TemplateResponse
{
public Guid Id { get; set; }
public required string Name { get; set; }
public bool IsActiveTemplate { get; set; }
public bool IsActiveSchedule { get; set; }
public Guid ApplicationInWorkId { get; set; }
public required string Category { get; set; }
public required string Initiator { get; set; }
public required string ClosingCode { get; set; }
public required string ShortDescription { get; set; }
public required string FullDescription { get; set; }
public required string Solution { get; set; }
public required string TemplateDuration { get; set; }
public TemplateAgentResponse? Agent { get; set; }
public DateTimeOffset? LastRun { get; set; }
public DateTimeOffset NextRun { get; set; }
public bool IsAutoDistributionEnabled { get; set; }
//public HostTemplateResponse? Host { get; set; }
public UnitBaseResponse? Unit { 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; }
public List<RobotConfigurationResponse>? SyncStatus { get; set; }