feat(api): JobGroupController добавлена выдача расписания и количество связанных Job

This commit is contained in:
Mikhail Kuznetsov
2025-09-04 14:51:51 +10:00
parent 0793c169f9
commit c9dcdedeca
9 changed files with 214 additions and 79 deletions

View File

@@ -20,19 +20,31 @@ namespace PARR.API.Contracts.V1.Responses
public DateTimeOffset ReferenceDate { get; set; }
public bool IsAutoDistributionEnabled { get; set; }
// public bool IsAutoDistributionEnabled { get; set; }
public bool IsAgent { get; set; }
// public bool IsAgent { get; set; }
public string? AgentName { get; set; }
// public string? AgentName { get; set; }
public int? AgentTimeOutSec { get; set; }
// public int? AgentTimeOutSec { get; set; }
public string? AgentScript { get; set; }
// public string? AgentScript { get; set; }
}
public class JobGroupResponse : JobGroupBaseResponse
{
public List<JobResponse>? Jobs { get; set; }
//public List<JobResponse>? Jobs { get; set; }
public int JobsCount { get; set; }
public JobGroupScheduleResponse? Schedule { get; set; }
}
public class JobGroupScheduleResponse
{
public string Timezone { get; set; } = string.Empty;
public EsppScheduleTypeScheduleResponse? TypeSchedule { get; set; }
public List<EsppScheduleValResponse>? Values { get; set; }
}
}