2026-04-14 12:01:49 +10:00
|
|
|
|
using PARR.Domain.Enums;
|
2025-12-12 10:45:20 +10:00
|
|
|
|
using System.Text.Json.Serialization;
|
2025-12-02 09:49:08 +10:00
|
|
|
|
|
|
|
|
|
|
namespace PARR.API.Contracts.V1.Requests.Queries
|
2023-09-15 16:32:46 +10:00
|
|
|
|
{
|
|
|
|
|
|
public class TemplateQuery
|
|
|
|
|
|
{
|
2023-10-06 15:13:40 +10:00
|
|
|
|
///// <summary>
|
|
|
|
|
|
///// Статус шаблона: 10, 20, 30
|
|
|
|
|
|
///// </summary>
|
|
|
|
|
|
//public int? StatusCode { get; set; }
|
2023-09-26 12:26:37 +10:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2025-06-27 13:42:13 +10:00
|
|
|
|
/// Поиск по маске. Например: "ДВС-*"
|
2023-09-26 12:26:37 +10:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string? Mask { get; set; }
|
2024-04-11 09:22:43 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2025-09-10 10:40:12 +10:00
|
|
|
|
/// Поиск по ИД Задания (JobId)
|
2024-04-11 09:22:43 +10:00
|
|
|
|
/// </summary>
|
2025-09-10 10:40:12 +10:00
|
|
|
|
public Guid? JobId { get; set; }
|
2025-12-02 09:49:08 +10:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// StatusType
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public TemplateStatusTypeEnum? StatusTypeId { get; set; }
|
2025-12-12 10:45:20 +10:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Статус синхронизации шаблонов и расписаний
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public TemplateQuerySyncStatusEnum? SyncStatus { get; set; }
|
2026-01-29 16:53:00 +10:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Применять шорткоды
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public bool? ApplyShortcode { get; set; }
|
2025-12-12 10:45:20 +10:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Статус синхронизации шаблонов и расписаний
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[JsonConverter(typeof(JsonStringEnumConverter))]
|
|
|
|
|
|
public enum TemplateQuerySyncStatusEnum
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Ожидает синхронизации
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
Waiting = 0,
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Выполнена синхронизация
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
Complete = 1,
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Ошибка синхронизации
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
Error = 2
|
2023-09-15 16:32:46 +10:00
|
|
|
|
}
|
|
|
|
|
|
}
|