feat(api): Реализованы JobController, JobGroupController
This commit is contained in:
38
PARR.API/Contracts/V1/Responses/JobGroupResponse.cs
Normal file
38
PARR.API/Contracts/V1/Responses/JobGroupResponse.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
using PARR.DAL.Models.Job;
|
||||
|
||||
namespace PARR.API.Contracts.V1.Responses
|
||||
{
|
||||
public class JobGroupBaseResponse
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
|
||||
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; }
|
||||
}
|
||||
|
||||
public class JobGroupResponse : JobGroupBaseResponse
|
||||
{
|
||||
public List<JobResponse>? Jobs { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user