DD.WellWorkover.Cloud/AsbCloudApp/Services/IFileService.cs

24 lines
786 B
C#

using AsbCloudApp.Data;
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace AsbCloudApp.Services
{
public interface IFileService
{
string RootPath { get; }
IDictionary<string, int> SaveFilesPropertiesToDb(int idWell,
int idCategory, IEnumerable<(string fileName, int idWell, int idCategory,
DateTime date, int idUser)> filesInfo);
Task<PaginationContainer<FilePropertiesDto>> GetFilesInfoAsync(int idWell,
int idCategory, DateTime begin, DateTime end,
int skip, int take, CancellationToken token = default);
Task<(int Id, string Name, int IdCategory)?> GetFileInfoAsync(int fileId,
CancellationToken token);
}
}