feat(api): HostController вывод даных из таблицы Unit

This commit is contained in:
Mikhail Kuznetsov
2025-06-06 16:39:41 +10:00
parent b82a1de8bf
commit 59b592fdd9
5 changed files with 112 additions and 22 deletions

View File

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