feat(dal,api): IMatchingStatusService - управление статусами matcher`a. Отображение статусов в АПИ, нельзя повторно из апи отправить задание мэтчеру если сейчас идет matching

This commit is contained in:
Mikhail Trubnikov
2026-01-16 11:04:26 +10:00
parent 3205c1db8e
commit 99a491ede8
14 changed files with 303 additions and 91 deletions

View File

@@ -40,8 +40,11 @@
{
//public List<JobResponse>? Jobs { get; set; }
public int JobsCount { get; set; }
public JobGroupScheduleResponse? Schedule { get; set; }
public MatchingStatusResponse? MatchingStatus { get; set; }
/// <summary>
/// Расписание
/// </summary>

View File

@@ -34,6 +34,8 @@
public JobAutoControlResponse? AutoControl { get; set; }
public MatchingStatusResponse? MatchingStatus { get; set; }
#region Статистика Old
//public TemplateStats? TemplateStatistics { get; set; }

View File

@@ -0,0 +1,32 @@
using PARR.DAL.Cache.Models;
namespace PARR.API.Contracts.V1.Responses
{
public class MatchingStatusResponse
{
/// <summary>
/// В целом по искомому объекту, идет ли matching
/// </summary>
public bool IsMatchingObject { get; set; }
/// <summary>
/// Идет ли мэтчинг по Jobs
/// </summary>
public bool IsMatchingJobs { get; set; }
/// <summary>
/// Идет ли мэтчинг по JobGroups
/// </summary>
public bool IsMatchingJobGroups { get; set; }
/// <summary>
/// Детально по Jobs
/// </summary>
public List<MatchingStatusItemDto>? DetailsJobs { get; set; }
/// <summary>
/// Детально по JobGroups
/// </summary>
public List<MatchingStatusItemDto>? DetailsJobGroups { get; set; }
}
}