feat(dal,api): Удалены старые таблицы AppInWorks
This commit is contained in:
@@ -1,102 +0,0 @@
|
||||
namespace PARR.API.Contracts.V1.Responses
|
||||
{
|
||||
public class ApplicationInWorkBaseResponse
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public required string TemplateDuration { get; set; }
|
||||
|
||||
public required string ShortDescription { get; set; }
|
||||
|
||||
public required string FullDescription { get; set; }
|
||||
|
||||
public required string Solution { 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; }
|
||||
|
||||
public string? AgentScript { get; set; }
|
||||
|
||||
//public WorkResponse? Work { get; set; }
|
||||
|
||||
public int TemplatesCount { get; set; }
|
||||
|
||||
|
||||
#region Статистика
|
||||
|
||||
public TemplateStats? TemplateStatistics { get; set; }
|
||||
|
||||
public ScheduleStats? ScheduleStatistics { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
public ApplicationInWorkScheduleResponse? Schedule { get; set; }
|
||||
|
||||
public List<WorkGroupResponse>? WorkGroups { get; set; }
|
||||
|
||||
//public JobAutoControlBaseResponse? AutoControl { get; set; }
|
||||
}
|
||||
|
||||
|
||||
public class ApplicationInWorkScheduleResponse
|
||||
{
|
||||
public string Timezone { get; set; } = string.Empty;
|
||||
|
||||
public EsppScheduleTypeScheduleResponse? TypeSchedule { get; set; }
|
||||
|
||||
public List<EsppScheduleValResponse>? Values { get; set; }
|
||||
}
|
||||
|
||||
|
||||
//public class TemplateStats
|
||||
//{
|
||||
// /// <summary>
|
||||
// /// Активированных шаблонов
|
||||
// /// </summary>
|
||||
// public int Activated { get; set; }
|
||||
|
||||
// /// <summary>
|
||||
// /// Синхронизировано шаблонов (TaskStatus = 30/Ok)
|
||||
// /// </summary>
|
||||
// public int Synchronized { get; set; }
|
||||
|
||||
// /// <summary>
|
||||
// /// Ошибок синхронизации (RobotStatus = 33/Error)
|
||||
// /// </summary>
|
||||
// public int Errors { get; set; }
|
||||
//}
|
||||
|
||||
|
||||
//public class ScheduleStats
|
||||
//{
|
||||
// /// <summary>
|
||||
// /// Активированных шаблонов
|
||||
// /// </summary>
|
||||
// public int Activated { get; set; }
|
||||
|
||||
// /// <summary>
|
||||
// /// Синхронизировано шаблонов (TaskStatus = 30/Ok)
|
||||
// /// </summary>
|
||||
// public int Synchronized { get; set; }
|
||||
|
||||
// /// <summary>
|
||||
// /// Ошибок синхронизации (RobotStatus = 33/Error)
|
||||
// /// </summary>
|
||||
// public int Errors { get; set; }
|
||||
//}
|
||||
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
namespace PARR.API.Contracts.V1.Responses
|
||||
{
|
||||
public class ApplicationResponse
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public required string Name { get; set; }
|
||||
|
||||
public ApplicationTypeResponse? Type { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
namespace PARR.API.Contracts.V1.Responses
|
||||
{
|
||||
public class ApplicationTypeResponse
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public required string Name { get; set; }
|
||||
|
||||
public required string Description { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
namespace PARR.API.Contracts.V1.Responses
|
||||
{
|
||||
public class EkStatusResponse
|
||||
{
|
||||
public int Code { get; set; }
|
||||
public required string Name { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,43 +0,0 @@
|
||||
namespace PARR.API.Contracts.V1.Responses
|
||||
{
|
||||
public class HostBaseResponse
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public string Ek { get; set; } = string.Empty;
|
||||
|
||||
public required string IP { get; set; }
|
||||
|
||||
//TODO: Удалить поле Status, использовать EkStatus
|
||||
public string? Status { get; set; }
|
||||
|
||||
public EkStatusResponse? EkStatus { get; set; }
|
||||
|
||||
public string? WorkGroupName { get; set; }
|
||||
|
||||
public WorkGroupResponse? WorkGroup { get; set; }
|
||||
|
||||
//TODO: Удалить поле ResponseArea, использовать EkResponseArea
|
||||
public string? ResponseArea { get; set; }
|
||||
|
||||
public ResponseAreaResponse? EkResponseArea { get; set; }
|
||||
|
||||
public DateTimeOffset? LastLogon { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Респонс Хоста для Шаблона
|
||||
/// </summary>
|
||||
public class HostTemplateResponse : HostBaseResponse
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Респонс Хоста с приложениями (компнентном составе)
|
||||
/// </summary>
|
||||
public class HostWithApplicationsResponse : HostBaseResponse
|
||||
{
|
||||
public List<ApplicationResponse>? Applications { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
namespace PARR.API.Contracts.V1.Responses
|
||||
{
|
||||
public class ResponseAreaResponse
|
||||
{
|
||||
public int Code { get; set; }
|
||||
|
||||
public required string Name { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -2,6 +2,6 @@
|
||||
{
|
||||
public class StatResponseAreaWorkLoadResponse : StatWorkLoadDataBaseResponse
|
||||
{
|
||||
public required ResponseAreaResponse ResponseArea { get; set; }
|
||||
//public required ResponseAreaResponse ResponseArea { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
{
|
||||
public class StatWorkGroupWorkLoadResponse : StatWorkLoadDataBaseResponse
|
||||
{
|
||||
public required WorkGroupResponse WorkGroup { get; set; }
|
||||
//public required WorkGroupResponse WorkGroup { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
{
|
||||
public class StatWorkWorkLoadResponse : StatWorkLoadDataBaseResponse
|
||||
{
|
||||
public required ApplicationInWorkBaseResponse Job { get; set; }
|
||||
//public required ApplicationInWorkBaseResponse Job { get; set; }
|
||||
|
||||
public required WorkGroupResponse WorkGroup { get; set; }
|
||||
//public required WorkGroupResponse WorkGroup { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
namespace PARR.API.Contracts.V1.Responses
|
||||
{
|
||||
public class WorkGroupResponse
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public required string Name { get; set; }
|
||||
|
||||
public ResponseAreaResponse? ResponseArea { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user