forked from ddrilling/AsbCloudServer
30 lines
919 B
C#
30 lines
919 B
C#
using AsbCloudApp.Data;
|
|
using System;
|
|
using System.IO;
|
|
using System.Collections.Generic;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace AsbCloudApp.Services
|
|
{
|
|
public interface IFileService
|
|
{
|
|
string RootPath { get; }
|
|
IDictionary<string, int> SaveFileInfos(int idWell, int idUser,
|
|
IEnumerable<FileInfoDto> filesInfo);
|
|
|
|
Task SaveFile(int idWell, int idCategory, int fileId,
|
|
string fileExtension, Stream fileStream);
|
|
|
|
Task<PaginationContainer<FileInfoDto>> GetFilesInfoAsync(int idWell,
|
|
int idCategory, IEnumerable<int> companies, DateTime begin, DateTime end,
|
|
int skip, int take, CancellationToken token = default);
|
|
|
|
Task<FileInfoDto> GetFileInfoAsync(int fileId,
|
|
CancellationToken token);
|
|
|
|
Task<int> DeleteFileAsync(int idFile,
|
|
CancellationToken token = default);
|
|
}
|
|
}
|