feat(api): HostController.Response Field, Value выделены в отдельные поля

This commit is contained in:
Mikhail Kuznetsov
2025-06-09 13:55:57 +10:00
parent 59b592fdd9
commit 0d08794636
8 changed files with 83 additions and 19 deletions

View 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; }
}
}