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

@@ -308,11 +308,15 @@ namespace PARR.API.MappingProfiles
#region JobGroup
CreateMap<JobGroup, JobGroupBaseResponse>()
.Include<JobGroup, JobGroupResponse>()
.ForMember(d => d.Name, o => o.MapFrom(s => s.GroupName));
.Include<JobGroup, JobGroupResponse>();
CreateMap<JobGroup, JobGroupBaseResponse>()
.ForMember(d => d.Name, o => o.MapFrom(s => s.GroupName));
CreateMap<JobGroup, JobGroupResponse>()
.ForMember(d => d.Jobs, o => o.MapFrom(s => s.Jobs));
.ForMember(d => d.Schedule, o => o.MapFrom<JobGroupScheduleResolver>())
.ForMember(d => d.JobsCount, o => o.MapFrom(s => s.Jobs.Count()));
#endregion
#region JobAutoControl