16 lines
666 B
C#
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);
|
|
} |