feat(api): JobGroupController добавлена выдача расписания и количество связанных Job
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
|
||||
//public required ScheduleRequest Schedule { get; set; }
|
||||
|
||||
public List<EsppSchValueRequest> Schedule { get; set; } = new List<EsppSchValueRequest>();
|
||||
//public List<EsppSchValueRequest> Schedule { get; set; } = new List<EsppSchValueRequest>();
|
||||
|
||||
public List<Guid> WorkGroups { get; set; } = new List<Guid>();
|
||||
}
|
||||
@@ -51,10 +51,10 @@
|
||||
//}
|
||||
|
||||
|
||||
public class EsppSchValueRequest
|
||||
{
|
||||
public Guid TypeValueId { get; set; }
|
||||
//public class EsppSchValueRequest
|
||||
//{
|
||||
// public Guid TypeValueId { get; set; }
|
||||
|
||||
public Guid TypeConfigId { get; set; }
|
||||
}
|
||||
// public Guid TypeConfigId { get; set; }
|
||||
//}
|
||||
}
|
||||
|
||||
@@ -25,5 +25,14 @@
|
||||
public int? AgentTimeOutSec { get; set; }
|
||||
|
||||
public string? AgentScript { get; set; }
|
||||
|
||||
public List<EsppSchValueRequest> Schedule { get; set; } = new List<EsppSchValueRequest>();
|
||||
}
|
||||
|
||||
public class EsppSchValueRequest
|
||||
{
|
||||
public Guid TypeValueId { get; set; }
|
||||
|
||||
public Guid TypeConfigId { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,10 +8,5 @@ namespace PARR.API.Contracts.V1.Requests.Queries
|
||||
/// Поиск по имени
|
||||
/// </summary>
|
||||
public string? Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Поиск по короткому описанию
|
||||
/// </summary>
|
||||
public string? ShortDescription { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user