2021-08-09 15:41:42 +05:00
|
|
|
|
using AsbCloudApp.Data;
|
|
|
|
|
using System;
|
2021-07-23 17:40:31 +05:00
|
|
|
|
using System.Collections.Generic;
|
2021-08-11 16:54:42 +05:00
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
2021-07-23 17:40:31 +05:00
|
|
|
|
|
|
|
|
|
namespace AsbCloudApp.Services
|
|
|
|
|
{
|
|
|
|
|
public interface IFileService
|
|
|
|
|
{
|
|
|
|
|
string RootPath { get; }
|
2021-08-09 15:41:42 +05:00
|
|
|
|
IDictionary<string, int> SaveFilesPropertiesToDb(int idWell,
|
2021-07-26 11:54:50 +05:00
|
|
|
|
int idCategory, IEnumerable<(string fileName, int idWell, int idCategory,
|
2021-07-23 17:40:31 +05:00
|
|
|
|
DateTime date, int idUser)> filesInfo);
|
|
|
|
|
|
2021-08-11 16:54:42 +05:00
|
|
|
|
Task<PaginationContainer<FilePropertiesDto>> GetFilesInfoAsync(int idWell,
|
2021-07-26 11:54:50 +05:00
|
|
|
|
int idCategory, DateTime begin, DateTime end,
|
2021-08-11 16:54:42 +05:00
|
|
|
|
int skip, int take, CancellationToken token = default);
|
2021-07-23 17:40:31 +05:00
|
|
|
|
|
2021-08-11 17:26:02 +05:00
|
|
|
|
Task<(int Id, string Name, int IdCategory)?> GetFileInfoAsync(int fileId,
|
|
|
|
|
CancellationToken token);
|
2021-07-23 17:40:31 +05:00
|
|
|
|
}
|
|
|
|
|
}
|