feat(api): templateResponse - добавлена инфа о часовом поясе

This commit is contained in:
Mikhail Trubnikov
2026-02-04 09:50:30 +10:00
parent 4a864bd18b
commit 6bce085fef
4 changed files with 41 additions and 7 deletions

View File

@@ -0,0 +1,11 @@
namespace PARR.API.Contracts.V1.Responses
{
public class ScheduleResponseAreaTimeOffsetResponse
{
public required string ResponseArea { get; set; }
public required string EsppValue { get; set; }
public TimeSpan UtcTimeOffset { get; set; }
}
}

View File

@@ -17,7 +17,7 @@
public DateTimeOffset NextRun { get; set; }
/// <summary>
/// NextRun с учетом ЗО
/// NextRun с учетом ЗО (локальное время по ЗО, не UTC)
/// </summary>
public DateTimeOffset? NextRunResponseAreaInLocal { get; set; }
@@ -26,12 +26,12 @@
/// <summary>
/// Рабочая группа (формируется из шорткода)
/// </summary>
public string? WorkGroup { get; set; }
public string? WorkGroup { get; set; }
/// <summary>
/// ЗО, формируется из шорткода
/// </summary>
public string? ResponseArea { get; set; }
public string? ResponseArea { get; set; }
public UnitWithAttributesResponse? Unit { get; set; }
@@ -44,6 +44,8 @@
public int OrderCount { get; set; }
public bool IsAutoDistributionEnabled { get; set; }
public ScheduleResponseAreaTimeOffsetResponse? Timezone { get; set; }
}