Изменен минимальный респонс /jobs/ip/ (согласовано с Пригода Д.В.)

This commit is contained in:
Mikhail Trubnikov
2023-07-26 10:09:25 +10:00
parent 3bb3266d10
commit 7e4466f938
6 changed files with 38 additions and 15 deletions

View File

@@ -11,9 +11,16 @@ namespace PARR.API.MappingProfiles
// --- Job ---
CreateMap<Job, JobBaseResponse>()
.Include<Job, JobGetAllResponse>()
.ForMember(d => d.FrequencyMinute, o => o.MapFrom(s => s.Frequency));
.ForMember(d => d.FrequencyMinute, o => o.MapFrom(s => s.Frequency))
.ForMember(d => d.Script, o => o.MapFrom(s => s.ScriptName));
CreateMap<Job, JobGetAllResponse>();
CreateMap<Job, JobMinResponse>()
.ForMember(d => d.Script, o => o.MapFrom(s => s.ScriptName));
// === Job ===
CreateMap<JobMode, JobModeResponse>();
}