text-matcher/src/Nocr.TextMatcher.AppServices/TextMatches/Repositories/ITextMatchRepository.cs
2024-03-26 15:18:12 +03:00

16 lines
666 B
C#

namespace Nocr.TextMatcher.AppServices.TextMatches.Repositories;
public interface ITextMatchRepository
{
Task<long> Create(TextMatch textMatch, CancellationToken cancellationToken = default);
Task Delete(long id, CancellationToken cancellationToken = default);
Task<IReadOnlyCollection<TextMatch>> Get(CancellationToken cancellationToken = default);
Task<IReadOnlyCollection<TextMatch>> GetByUserId(long userId, CancellationToken cancellationToken = default);
Task<TextMatch?> GetById(long id, CancellationToken cancellationToken = default);
Task Update(TextMatch textMatch, CancellationToken cancellationToken = default);
}