feat(api, allLogs): в TemplateResponse добавлен TemplateStatusType. Шаблоны можно фильтровать по statusType. При изменении маски имени шаблона в Job, отправляется задание в очередь на переименование связанных шаблонов. Во всех проектах перенастроены логи, в проде, не пишутся логи внутрь контейнера, только в stdout.
This commit is contained in:
@@ -75,6 +75,11 @@
|
||||
public const string getParam = "{id}";
|
||||
}
|
||||
|
||||
public static class TemplateStatusType
|
||||
{
|
||||
public const string GetAll = Base + "/template-status-types/";
|
||||
}
|
||||
|
||||
public static class TemplateHistory
|
||||
{
|
||||
public const string GetAll = Base + "/template-histories/";
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
namespace PARR.API.Contracts.V1.Requests.Queries
|
||||
using PARR.Constants;
|
||||
|
||||
namespace PARR.API.Contracts.V1.Requests.Queries
|
||||
{
|
||||
public class TemplateQuery
|
||||
{
|
||||
@@ -17,5 +19,10 @@
|
||||
/// Поиск по ИД Задания (JobId)
|
||||
/// </summary>
|
||||
public Guid? JobId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// StatusType
|
||||
/// </summary>
|
||||
public TemplateStatusTypeEnum? StatusTypeId { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -51,5 +51,7 @@
|
||||
public EsppScheduleResponse? Schedule { get; set; }
|
||||
|
||||
public int OrderCount { get; set; }
|
||||
|
||||
public TemplateStatusTypeResponse? StatusType { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
namespace PARR.API.Contracts.V1.Responses
|
||||
{
|
||||
public class TemplateStatusTypeResponse
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public required string Name { get; set; }
|
||||
|
||||
public required string Description { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user