feat(api): статистика по регламентным работам по ЗО, РГ, РР

This commit is contained in:
Mikhail Trubnikov
2024-08-20 09:33:13 +10:00
parent 2e5424e6df
commit 558e91ce3b
13 changed files with 338 additions and 48 deletions

View File

@@ -1,8 +1,6 @@
using System.Runtime.InteropServices;
namespace PARR.API.Contracts.V1.Responses
namespace PARR.API.Contracts.V1.Responses
{
public class ApplicationInWorkResponse
public class ApplicationInWorkBaseResponse
{
public Guid Id { get; set; }
@@ -14,16 +12,18 @@ namespace PARR.API.Contracts.V1.Responses
public required string Solution { get; set; }
//public DateTimeOffset? LastRun { get; set; }
//public DateTimeOffset NextRun { get; set; }
public DateTimeOffset ReferenceDate { get; set; }
public bool IsAutoDistributionEnabled { get; set; }
public bool IsAgent { get; set; }
public ApplicationResponse? Application { get; set; }
}
public class ApplicationInWorkResponse : ApplicationInWorkBaseResponse
{
public string? AgentName { get; set; }
public int? AgentTimeOutSec { get; set; }
@@ -32,8 +32,6 @@ namespace PARR.API.Contracts.V1.Responses
public WorkResponse? Work { get; set; }
public ApplicationResponse? Application { get; set; }
public int TemplatesCount { get; set; }
@@ -77,7 +75,7 @@ namespace PARR.API.Contracts.V1.Responses
/// <summary>
/// Ошибок синхронизации (RobotStatus = 33/Error)
/// </summary>
public int Errors { get; set; }
public int Errors { get; set; }
}