feat(api): HostController.Response Field, Value выделены в отдельные поля
This commit is contained in:
36
PARR.API/Contracts/V1/Responses/UnitBaseResponse.cs
Normal file
36
PARR.API/Contracts/V1/Responses/UnitBaseResponse.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
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 : UnitBaseResponse
|
||||
{
|
||||
public List<AttributeResponse>? Attributes { get; set; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user