feat(core, api): Workload - Controller для формирования отчетов
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
using AutoMapper;
|
||||
using PARR.API.Authentication.Models;
|
||||
using PARR.API.Contracts.V1.Responses;
|
||||
using PARR.API.Contracts.V1.Responses.Statistics;
|
||||
using PARR.API.MappingProfiles.Resolvers;
|
||||
using PARR.Core.Repositories.Interfaces.Schedule;
|
||||
using PARR.Domain.DTOs.Matching;
|
||||
using PARR.Domain.DTOs.Shortcode;
|
||||
using PARR.Domain.DTOs.Workload;
|
||||
using PARR.Domain.Entities;
|
||||
using PARR.Domain.Entities.Base.History;
|
||||
using PARR.Domain.Entities.Job;
|
||||
@@ -425,6 +427,24 @@ namespace PARR.API.MappingProfiles
|
||||
.ForMember(d => d.DetailsJobs, o => o.MapFrom(s => s.DetailsJobs != null ? s.DetailsJobs.Select(t => t.Data) : null));
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
#region StatWorkloadReportResponse
|
||||
|
||||
CreateMap<WorkloadReport, StatWorkloadReportResponse>();
|
||||
|
||||
CreateMap<WorkloadSummary, WorkloadSummaryResponse>();
|
||||
|
||||
CreateMap<WorkloadSummaryItem, WorkloadSummaryItemResponse>();
|
||||
|
||||
CreateMap<WorkloadDayItem, WorkloadDayItemResponse>();
|
||||
|
||||
CreateMap<WorkloadStatisticItem, WorkloadStatisticItemResponse>();
|
||||
|
||||
CreateMap<WorkloadDailyItem, WorkloadDailyItemResponse>();
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user