feat(api): JobGroupController добавлена выдача расписания и количество связанных Job
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user