forked from ddrilling/AsbCloudServer
30 lines
1.0 KiB
C#
30 lines
1.0 KiB
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; }
|
|
|
|
Task<FileInfoDto> SaveAsync(int idWell, int idUser, int idCategory, string fileFullName, Stream fileStream, CancellationToken token = default);
|
|
|
|
Task<PaginationContainer<FileInfoDto>> GetInfosAsync(int idWell,
|
|
int idCategory, IEnumerable<int> companies, DateTime begin, DateTime end,
|
|
int skip, int take, CancellationToken token = default);
|
|
|
|
Task<FileInfoDto> GetInfoAsync(int fileId,
|
|
CancellationToken token);
|
|
|
|
Task<int> MarkAsDeletedAsync(int idFile,
|
|
CancellationToken token = default);
|
|
Task<IEnumerable<FileInfoDto>> GetInfosByCategoryAsync(int idWell, int idCategory, CancellationToken token = default);
|
|
Task<int> DeletedAsync(int id, CancellationToken token);
|
|
string GetFileName(FileInfoDto fileInfo);
|
|
}
|
|
}
|