feat(api): RobotHistory - фильтрация по дате

This commit is contained in:
Mikhail Trubnikov
2026-07-09 09:02:29 +10:00
parent d7d4713953
commit 33cdc29e80
2 changed files with 38 additions and 9 deletions

View File

@@ -2,22 +2,31 @@
namespace PARR.API.Contracts.V1.Requests.Queries
{
public class RobotHistoryQuery
public record RobotHistoryQuery
{
/// <summary>
/// Фильтр по ИД шаблона
/// </summary>
public Guid? TemplateId { get; set; }
public Guid? TemplateId { get; init; }
/// <summary>
/// Фильтр по ИД робота
/// </summary>
public RobotsEnum? RobotCode { get; set; }
public RobotsEnum? RobotCode { get; init; }
/// <summary>
/// Фильтр по уровню истории
/// </summary>
public RobotHistoryLevelEnum? HistoryLevel { get; set; }
public RobotHistoryLevelEnum? HistoryLevel { get; init; }
/// <summary>
/// Дата начала
/// </summary>
public DateTimeOffset? DateFrom { get; init; }
/// <summary>
/// Дата окончания
/// </summary>
public DateTimeOffset? DateTo { get; init; }
}
}