SHA256
feat StayExport - Initial Implementation
- Created models for DB and DTOs: StayExportFile - Added required db migrations. - Added StayExportService and StayExportServiceFactory for stay exporting services. - Added configuration options required for StayExport.
This commit is contained in:
@@ -51,4 +51,24 @@ internal static class EntityMapping
|
||||
};
|
||||
}
|
||||
|
||||
public static StayExportFileDTO MapStayExportFileEntityToDTO(StayExportFile entity)
|
||||
{
|
||||
StayExportParamsDTO exportParamsDto = new()
|
||||
{
|
||||
ExportType = entity.ExportParams.ExportType,
|
||||
ExportPeriodStart = entity.ExportParams.ExportPeriodStart,
|
||||
ExportPeriodEnd = entity.ExportParams.ExportPeriodEnd,
|
||||
};
|
||||
|
||||
return new()
|
||||
{
|
||||
Id = entity.Id,
|
||||
ExportFormat = entity.ExportFormat,
|
||||
ExportParams = exportParamsDto,
|
||||
ExportResult = entity.ExportResult,
|
||||
ExportedPath = entity.ExportedPath,
|
||||
ExportTime = entity.ExportTime,
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user