SHA256
feat StayExport - Refactor Export Services.
- Created new service: IStayExportService" for common export operations. - Updated older services to be "IStayExportFormatProvider". This services will only implement the export format. - Renamed "IStayExportServiceFactory" to "IStayExportFormatProviderFactory" as this factory now is used to get the format providers for the given format.
This commit is contained in:
@@ -5,7 +5,10 @@ namespace Somnia.GuestLog.Services.StayExport;
|
||||
|
||||
public interface IStayExportService
|
||||
{
|
||||
public StayExportFormat GetFormat();
|
||||
public Task<Result<StayExportFileDTO>> ExportStaysByParamsAsync(StayExportFormat format, StayExportParamsDTO exportParams);
|
||||
|
||||
public Task<Result<StayExportFileDTO>> ExportStaysByParams(StayExportParamsDTO exportParams);
|
||||
|
||||
public Task<Result> GetExportedFileAsync(StayExportFileDTO item, Stream dataStream);
|
||||
|
||||
public Task<Result> DeleteExportedFileAsync(StayExportFileDTO item);
|
||||
}
|
||||
Reference in New Issue
Block a user