feat(api): Вынес логику формирования расписания в сервис IEsppSchTypeConfigService. В респонс шаблона добавил отображение расписания. Получение шаблона по ИД.
This commit is contained in:
23
PARR.DAL/DomainModels/EsppScheduleDto.cs
Normal file
23
PARR.DAL/DomainModels/EsppScheduleDto.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using PARR.DAL.Models;
|
||||
|
||||
namespace PARR.DAL.DomainModels
|
||||
{
|
||||
/// <summary>
|
||||
/// Расписание ЕСПП в нормальном виде
|
||||
/// </summary>
|
||||
public class EsppScheduleDto
|
||||
{
|
||||
public required EsppSchTypeSchedule TypeSchedule { get; set; }
|
||||
|
||||
public required List<EsppScheduleValDto> Values { get; set; }
|
||||
}
|
||||
|
||||
public class EsppScheduleValDto
|
||||
{
|
||||
public int Order { get; set; }
|
||||
|
||||
public required EsppSchType Type { get; set; }
|
||||
|
||||
public required EsppSchTypeValue Value { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user