feat(api): Реализованы JobController, JobGroupController

This commit is contained in:
Mikhail Kuznetsov
2025-07-01 17:20:48 +10:00
parent f429b70410
commit 5bbf2e2db5
16 changed files with 855 additions and 44 deletions

View File

@@ -0,0 +1,29 @@
namespace PARR.API.Contracts.V1.Requests
{
public class JobGroupRequest
{
public required string Name { get; set; }
public bool? IsUmbrella { get; set; }
public required string ShortDescription { get; set; }
public required string FullDescription { get; set; }
public required string Solution { get; set; }
public required string TemplateDuration { get; set; }
public DateTimeOffset ReferenceDate { get; set; }
public bool IsAutoDistributionEnabled { get; set; }
public bool IsAgent { get; set; }
public string? AgentName { get; set; }
public int? AgentTimeOutSec { get; set; }
public string? AgentScript { get; set; }
}
}

View File

@@ -0,0 +1,19 @@
namespace PARR.API.Contracts.V1.Requests
{
public class JobRequest
{
public required Guid TnkId { get; set; }
public required Guid GroupId { get; set; }
public required string Name { get; set; }
public int? MinValueRelationships { get; set; }
public int? MaxValueRelationships { get; set; }
public string? TemplateNameMask { get; set; }
public required string WorkName { get; set; }
}
}

View File

@@ -0,0 +1,17 @@
using PARR.API.Contracts.V1.Requests.BaseRequests;
namespace PARR.API.Contracts.V1.Requests.Queries
{
public class JobGroupQuery: FullQuery
{
/// <summary>
/// Поиск по имени
/// </summary>
public string? Name { get; set; }
/// <summary>
/// Поиск по короткому описанию
/// </summary>
public string? ShortDescription { get; set; }
}
}

View File

@@ -0,0 +1,15 @@
namespace PARR.API.Contracts.V1.Requests.Queries
{
public class JobQuery
{
/// <summary>
/// Поиск по имени
/// </summary>
public string? Name { get; set; }
/// <summary>
/// Поиск по Id группы работ
/// </summary>
public Guid? GroupId { get; set; }
}
}