Files
parr_api/PARR.Domain/Cache/Models/TemplateCache.cs

25 lines
799 B
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using PARR.Domain.Cache.Models.Base;
namespace PARR.Domain.Cache.Models
{
/// <summary>
/// Модель кэша для построения отчетности о загруженности.
/// Шаблон + ЗО + РГ
/// </summary>
public record TemplateCache : IBaseCache<TemplateCacheDto>
{
public required TemplateCacheDto Data { get; set; }
public DateTimeOffset Timestamp { get; set; }
public required string Source { get; set; }
}
public record TemplateCacheDto
{
public Guid TemplateId { get; init; }
public required string WorkGroup { get; init; }
public required string ResponseArea { get; init; }
public Guid JobId { get; init; }
public Guid JobGroupId { get; init; }
}
}