2021-08-09 15:41:42 +05:00
|
|
|
|
using AsbCloudApp.Data;
|
|
|
|
|
using System;
|
2021-08-19 16:32:04 +05:00
|
|
|
|
using System.IO;
|
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-19 17:32:22 +05:00
|
|
|
|
IDictionary<string, int> SaveFileInfos(int idWell, int idUser,
|
|
|
|
|
IEnumerable<FileInfoDto> filesInfo);
|
2021-07-23 17:40:31 +05:00
|
|
|
|
|
2021-08-19 16:32:04 +05:00
|
|
|
|
Task SaveFile(int idWell, int idCategory, int fileId,
|
|
|
|
|
string fileExtension, Stream fileStream);
|
|
|
|
|
|
2021-08-13 17:26:19 +05:00
|
|
|
|
Task<PaginationContainer<FileInfoDto>> 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-13 17:26:19 +05:00
|
|
|
|
Task<FileInfoDto> GetFileInfoAsync(int fileId,
|
2021-08-11 17:26:02 +05:00
|
|
|
|
CancellationToken token);
|
2021-08-19 16:58:26 +05:00
|
|
|
|
|
|
|
|
|
Task<int> DeleteFileAsync(int idFile,
|
|
|
|
|
CancellationToken token = default);
|
2021-07-23 17:40:31 +05:00
|
|
|
|
}
|
|
|
|
|
}
|