-
Notifications
You must be signed in to change notification settings - Fork 38
/
IFileRepository.cs
32 lines (25 loc) · 1.44 KB
/
IFileRepository.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Volo.Abp.Domain.Repositories;
namespace EasyAbp.FileManagement.Files
{
public interface IFileRepository : IRepository<File, Guid>
{
Task<List<File>> GetListAsync(Guid? parentId, string fileContainerName, Guid? ownerUserId,
FileType? specifiedFileType = null, CancellationToken cancellationToken = default);
Task<File> FindAsync(string fileName, Guid? parentId, string fileContainerName, Guid? ownerUserId,
bool forceCaseSensitive, CancellationToken cancellationToken = default);
Task<bool> ExistAsync(string fileName, Guid? parentId, string fileContainerName, Guid? ownerUserId,
bool forceCaseSensitive, CancellationToken cancellationToken = default);
Task<File> FirstOrDefaultAsync(string fileContainerName, string hash, long byteSize,
CancellationToken cancellationToken = default);
Task<File> FirstOrDefaultAsync(string fileContainerName, string blobName,
CancellationToken cancellationToken = default);
Task<SubFilesStatisticDataModel> GetSubFilesStatisticDataAsync(Guid id,
CancellationToken cancellationToken = default);
Task<string> GetFileNameWithNextSerialNumberAsync(string fileName, Guid? parentId, string fileContainerName,
Guid? ownerUserId, CancellationToken cancellationToken = default);
}
}