feat(api,dal): в модель JobGroupType добавлено поле description. В job контроллерах убрано поле isUmbrella, добавлено JobType.

This commit is contained in:
Mikhail Trubnikov
2025-11-17 12:06:33 +10:00
parent 48c8741395
commit e24ce20d02
15 changed files with 4143 additions and 22 deletions

View File

@@ -389,6 +389,11 @@
public const string getParam = "{id}";
}
public static class JobGroupType
{
public const string GetAll = Base + "/job-group-types/";
}
public static class JobAutoControl
{
public const string Get = Base + "/jobs/" + appInWorkId + "/auto-control";

View File

@@ -4,7 +4,9 @@
{
public required string Name { get; set; }
public bool? IsUmbrella { get; set; }
//public bool? IsUmbrella { get; set; }
public Guid GroupTypeId { get; set; }
public required string ShortDescription { get; set; }

View File

@@ -8,7 +8,7 @@ namespace PARR.API.Contracts.V1.Responses
public required string Name { get; set; }
public bool? IsUmbrella { get; set; }
//public bool? IsUmbrella { get; set; }
public required string ShortDescription { get; set; }
@@ -20,15 +20,17 @@ namespace PARR.API.Contracts.V1.Responses
public DateTimeOffset ReferenceDate { get; set; }
// public bool IsAutoDistributionEnabled { get; set; }
public JobGroupTypeResponse GroupType { get; set; }
// public bool IsAgent { get; set; }
// public bool IsAutoDistributionEnabled { get; set; }
// public string? AgentName { get; set; }
// public bool IsAgent { get; set; }
// public int? AgentTimeOutSec { get; set; }
// public string? AgentName { get; set; }
// public string? AgentScript { get; set; }
// public int? AgentTimeOutSec { get; set; }
// public string? AgentScript { get; set; }
}
public class JobGroupResponse : JobGroupBaseResponse

View File

@@ -0,0 +1,15 @@
using PARR.DAL.Contracts;
namespace PARR.API.Contracts.V1.Responses
{
public class JobGroupTypeResponse
{
public Guid Id { get; set; }
public required JobGroupTypesEnum Code { get; set; }
public required string Name { get; set; }
public required string Description { get; set; }
}
}