feat(api): SyncTaskController, обновлен метод для отправки задания в matcher. Теперь метод универсальный.

This commit is contained in:
Mikhail Trubnikov
2025-12-19 14:06:44 +10:00
parent a03b882880
commit 80ece823ca
4 changed files with 32 additions and 21 deletions

View File

@@ -492,12 +492,16 @@
#endregion
#region SyncTask
public static class SyncTask
{
public const string MatchTemplatesForJob = Base + "/sync-tasks/jobs/{jobId}/match-templates";
public const string MatchTemplatesForJobGroup = Base + "/sync-tasks/job-groups/{jobGroupId}/match-templates";
public const string MatchTemplatesForTemplate = Base + "/sync-tasks/templates/{templateId}/match-templates";
public const string MatchTemplates = Base + "/sync-tasks/match-templates";
//public const string MatchTemplatesForJob = Base + "/sync-tasks/jobs/{jobId}/match-templates";
//public const string MatchTemplatesForJobGroup = Base + "/sync-tasks/job-groups/{jobGroupId}/match-templates";
//public const string MatchTemplatesForTemplate = Base + "/sync-tasks/templates/{templateId}/match-templates";
}
#endregion

View File

@@ -1,9 +0,0 @@
using PARR.Constants;
namespace PARR.API.Contracts.V1.Requests
{
public class MatchTemplatesForJobRequest
{
public TemplateMatcherActionEnum Action { get; set; }
}
}

View File

@@ -0,0 +1,13 @@
using PARR.Constants;
namespace PARR.API.Contracts.V1.Requests
{
public class MatchTemplatesRequest
{
public Guid ObjectId { get; set; }
public SyncTaskEntityTypeEnum EntityType { get; set; }
public TemplateMatcherActionEnum Action { get; set; }
}
}