feat(api): в HostResponse добавлена информация о компонентном составе
This commit is contained in:
@@ -5,5 +5,7 @@
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public required string Name { get; set; }
|
||||
|
||||
public ApplicationTypeResponse? Type { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
11
PARR.API/Contracts/V1/Responses/ApplicationTypeResponse.cs
Normal file
11
PARR.API/Contracts/V1/Responses/ApplicationTypeResponse.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
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; }
|
||||
}
|
||||
}
|
||||
33
PARR.API/Contracts/V1/Responses/HostBaseResponse.cs
Normal file
33
PARR.API/Contracts/V1/Responses/HostBaseResponse.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
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; }
|
||||
|
||||
public string? Status { get; set; }
|
||||
|
||||
public string? WorkGroup { get; set; }
|
||||
|
||||
public string? ResponseArea { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Респонс Хоста для Шаблона
|
||||
/// </summary>
|
||||
public class HostTemplateResponse : HostBaseResponse
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Респонс Хоста с приложениями (компнентном составе)
|
||||
/// </summary>
|
||||
public class HostWithApplicationsResponse : HostBaseResponse
|
||||
{
|
||||
public List<ApplicationResponse>? Applications { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
namespace PARR.API.Contracts.V1.Responses
|
||||
{
|
||||
public class HostResponse
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public string Ek { get; set; }
|
||||
|
||||
public required string IP { get; set; }
|
||||
|
||||
public string? Status { get; set; }
|
||||
|
||||
public string? WorkGroup { get; set; }
|
||||
|
||||
public string? ResponseArea { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -22,7 +22,7 @@
|
||||
public DateTimeOffset NextRun { get; set; }
|
||||
|
||||
|
||||
public HostResponse? Host { get; set; }
|
||||
public HostTemplateResponse? Host { get; set; }
|
||||
|
||||
public WorkResponse? Work { get; set; }
|
||||
public ProcessResponse? Process { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user