feat(api): изменены респонсы Job и JobGroup.
This commit is contained in:
32
PARR.API/Contracts/V1/Responses/UnitResponse.cs
Normal file
32
PARR.API/Contracts/V1/Responses/UnitResponse.cs
Normal 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; }
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user