feat(api,dal): в модель JobGroupType добавлено поле description. В job контроллерах убрано поле isUmbrella, добавлено JobType.
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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; }
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
15
PARR.API/Contracts/V1/Responses/JobGroupTypeResponse.cs
Normal file
15
PARR.API/Contracts/V1/Responses/JobGroupTypeResponse.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user