feat(api): изменены респонсы Job и JobGroup.

This commit is contained in:
Mikhail Kuznetsov
2025-09-09 17:19:41 +10:00
parent 6d021b23e0
commit aa31af8027
11 changed files with 140 additions and 34 deletions

View File

@@ -0,0 +1,32 @@
namespace PARR.API.Contracts.V1.Responses
{
public class UnitBaseResponse
{
public Guid Id { get; set; }
public required string Name { get; set; }
}
public class UnitResponse : UnitBaseResponse
{
}
/// <summary>
/// Response с всеми аттребутами и их значениями
/// </summary>
public class UnitWithAttributesResponse : UnitResponse
{
public DateTimeOffset? LastLogon { get; set; }
public List<AttributeResponse>? Attributes { get; set; }
public List<UnitResponse>? Parents { get; set; }
public List<UnitResponse>? Childrens { get; set; }
}
}