SHA256
- Added new fields to track stay export uploading. - Added methods in EntityServices to update this fields. - Show new fields in UI (with required locale).
28 lines
1.1 KiB
C#
28 lines
1.1 KiB
C#
using Somnia.GuestLog.Enums.Models;
|
|
using Somnia.GuestLog.Models.DTOs;
|
|
|
|
namespace Somnia.GuestLog.Services.Entity;
|
|
|
|
public interface IStayExportFileEntityService
|
|
{
|
|
public Task<Result> CreateStayExportAsync(StayExportFileDTO dto);
|
|
|
|
/// <summary>
|
|
/// Delete StayExport entry from DB.
|
|
/// Exported File won't be deleted from Storage.
|
|
/// </summary>
|
|
public Task<Result> DeleteStayExportAsync(StayExportFileDTO dto);
|
|
|
|
/// <summary>
|
|
/// Update StayExport FileUploadStatus and execute required operations.
|
|
/// Only StayExport with UploadStatus "Pending" can be updated.
|
|
/// </summary>
|
|
/// <param name="id">ID of the StayExportFile to update</param>
|
|
/// <param name="newStatus">New UploadStatus</param>
|
|
public Task<Result> UpdateStayExportUploadStatusAsync(long id, UploadStatus newStatus);
|
|
|
|
|
|
public Task<StayExportFileDTO?> GetDtoByIdAsync(long id);
|
|
//public Task<IEnumerable<StayExportFileDTO>> GetDtoListByFilterAsync(StayExportFileFilterDTO filter, int limit = 0);
|
|
public Task<IEnumerable<StayExportFileDTO>> GetDtoListAsync(int limit = 0);
|
|
} |