mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 10:16:30 +00:00
big refactoring. get rid of static properties and coupled architecture. prepare system for integration tests
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
namespace Azaion.Common.Database;
|
||||
|
||||
public interface IAnnotationRepository
|
||||
{
|
||||
Task<List<Annotation>> GetByMediaHashAsync(string hash, CancellationToken ct = default);
|
||||
Task<Annotation?> GetByNameAsync(string name, CancellationToken ct = default);
|
||||
Task<List<Annotation>> GetAllAsync(CancellationToken ct = default);
|
||||
Task SaveAsync(Annotation annotation, CancellationToken ct = default);
|
||||
Task DeleteAsync(List<string> names, CancellationToken ct = default);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user