forked from ddrilling/AsbCloudServer
30 lines
1.1 KiB
C#
30 lines
1.1 KiB
C#
using AsbCloudApp.Data;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
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, string companyName = default, string fileName = default, DateTime begin = default, DateTime end = default,
|
|
int skip = 0, int take = 32, 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);
|
|
}
|
|
}
|