SHA256
feat StayExport - Moved Entity Services.
This commit is contained in:
@@ -59,7 +59,7 @@ builder.Services.AddSingleton<IValidator<StayEntryDTO>, StayEntryDTOValidator>()
|
|||||||
// Add Entity Services
|
// Add Entity Services
|
||||||
builder.Services.AddSingleton<IGuestDocumentEntityService, GuestDocumentEntityService>();
|
builder.Services.AddSingleton<IGuestDocumentEntityService, GuestDocumentEntityService>();
|
||||||
builder.Services.AddSingleton<IStayEntryEntityService, StayEntryEntityService>();
|
builder.Services.AddSingleton<IStayEntryEntityService, StayEntryEntityService>();
|
||||||
builder.Services.AddSingleton<IStayExportFileService, StayExportFileService>();
|
builder.Services.AddSingleton<IStayExportFileEntityService, StayExportFileEntityService>();
|
||||||
|
|
||||||
// Add Services
|
// Add Services
|
||||||
builder.Services.AddSingleton<IDataListService, StaticDataListService>();
|
builder.Services.AddSingleton<IDataListService, StaticDataListService>();
|
||||||
|
|||||||
+2
-2
@@ -1,8 +1,8 @@
|
|||||||
using Somnia.GuestLog.Models.DTOs;
|
using Somnia.GuestLog.Models.DTOs;
|
||||||
|
|
||||||
namespace Somnia.GuestLog.Services;
|
namespace Somnia.GuestLog.Services.Entity;
|
||||||
|
|
||||||
public interface IStayExportFileService
|
public interface IStayExportFileEntityService
|
||||||
{
|
{
|
||||||
public Task<Result> CreateStayExportAsync(StayExportFileDTO dto);
|
public Task<Result> CreateStayExportAsync(StayExportFileDTO dto);
|
||||||
public Task<Result> UpdateStayExportAsync(StayExportFileDTO dto);
|
public Task<Result> UpdateStayExportAsync(StayExportFileDTO dto);
|
||||||
+4
-4
@@ -5,12 +5,12 @@ using Somnia.GuestLog.Models;
|
|||||||
using Somnia.GuestLog.Models.DTOs;
|
using Somnia.GuestLog.Models.DTOs;
|
||||||
using Somnia.GuestLog.Models.Entities;
|
using Somnia.GuestLog.Models.Entities;
|
||||||
|
|
||||||
namespace Somnia.GuestLog.Services;
|
namespace Somnia.GuestLog.Services.Entity;
|
||||||
|
|
||||||
public class StayExportFileService(
|
public class StayExportFileEntityService(
|
||||||
ILogger<StayExportFileService> logger,
|
ILogger<StayExportFileEntityService> logger,
|
||||||
IDbContextFactory<GuestLogContext> contextFactory
|
IDbContextFactory<GuestLogContext> contextFactory
|
||||||
) : IStayExportFileService
|
) : IStayExportFileEntityService
|
||||||
{
|
{
|
||||||
public async Task<Result> CreateStayExportAsync(StayExportFileDTO dto)
|
public async Task<Result> CreateStayExportAsync(StayExportFileDTO dto)
|
||||||
{
|
{
|
||||||
@@ -13,7 +13,7 @@ namespace Somnia.GuestLog.Services.StayExport;
|
|||||||
|
|
||||||
public class JsonStayExportService(
|
public class JsonStayExportService(
|
||||||
ILogger<JsonStayExportService> logger,
|
ILogger<JsonStayExportService> logger,
|
||||||
IStayExportFileService stayExportEntityService,
|
IStayExportFileEntityService stayExportEntityService,
|
||||||
IStayEntryEntityService stayEntityService,
|
IStayEntryEntityService stayEntityService,
|
||||||
IOptions<StayExportConfig> exportConfig
|
IOptions<StayExportConfig> exportConfig
|
||||||
) : IStayExportService
|
) : IStayExportService
|
||||||
|
|||||||
Reference in New Issue
Block a user