feat(core, api): Workload - Controller для формирования отчетов

This commit is contained in:
Mikhail Trubnikov
2026-05-07 10:33:53 +10:00
parent eb6036f2c9
commit 277bf0caa3
14 changed files with 210 additions and 78 deletions

View File

@@ -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
}
}