13 lines
492 B
C#
13 lines
492 B
C#
using SPMS.Domain.Entities;
|
|
|
|
namespace SPMS.Domain.Interfaces;
|
|
|
|
public interface IFileRepository : IRepository<FileEntity>
|
|
{
|
|
Task<FileEntity?> GetByFileNameAsync(long serviceId, string fileName);
|
|
Task<bool> FileExistsAsync(long serviceId, string fileName);
|
|
Task<FileEntity?> GetByIdAndServiceAsync(long id, long serviceId);
|
|
Task<(IReadOnlyList<FileEntity> Items, int TotalCount)> GetPagedByServiceAsync(
|
|
long serviceId, int page, int size, string? fileType = null);
|
|
}
|