Domain repositories now implementing abstract repository interface
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
using AipsCore.Domain.Abstract;
|
||||
using AipsCore.Domain.Models.Shape.ValueObjects;
|
||||
|
||||
namespace AipsCore.Domain.Models.Shape.External;
|
||||
|
||||
public interface IShapeRepository
|
||||
public interface IShapeRepository : IAbstractRepository<Shape, ShapeId>
|
||||
{
|
||||
Task<Shape?> Get(ShapeId id, CancellationToken cancellationToken = default);
|
||||
Task Add(Shape shape, CancellationToken cancellationToken = default);
|
||||
|
||||
}
|
||||
@@ -1,9 +1,9 @@
|
||||
using AipsCore.Domain.Abstract;
|
||||
using AipsCore.Domain.Models.User.ValueObjects;
|
||||
|
||||
namespace AipsCore.Domain.Models.User.External;
|
||||
|
||||
public interface IUserRepository
|
||||
public interface IUserRepository : IAbstractRepository<User, UserId>
|
||||
{
|
||||
Task<User?> Get(UserId userId, CancellationToken cancellationToken = default);
|
||||
Task Save(User user, CancellationToken cancellationToken = default);
|
||||
|
||||
}
|
||||
@@ -1,11 +1,9 @@
|
||||
using AipsCore.Domain.Abstract;
|
||||
using AipsCore.Domain.Models.Whiteboard.ValueObjects;
|
||||
|
||||
namespace AipsCore.Domain.Models.Whiteboard.External;
|
||||
|
||||
public interface IWhiteboardRepository
|
||||
public interface IWhiteboardRepository : IAbstractRepository<Whiteboard, WhiteboardId>
|
||||
{
|
||||
Task<Whiteboard?> Get(WhiteboardId whiteboardId, CancellationToken cancellationToken = default);
|
||||
Task Save(Whiteboard whiteboard, CancellationToken cancellationToken = default);
|
||||
Task<bool> WhiteboardCodeExists(WhiteboardCode whiteboardCode);
|
||||
|
||||
}
|
||||
@@ -1,9 +1,9 @@
|
||||
using AipsCore.Domain.Abstract;
|
||||
using AipsCore.Domain.Models.WhiteboardMembership.ValueObjects;
|
||||
|
||||
namespace AipsCore.Domain.Models.WhiteboardMembership.External;
|
||||
|
||||
public interface IWhiteboardMembershipRepository
|
||||
public interface IWhiteboardMembershipRepository : IAbstractRepository<WhiteboardMembership, WhiteboardMembershipId>
|
||||
{
|
||||
Task<WhiteboardMembership?> Get(WhiteboardMembershipId whiteboardMembershipId, CancellationToken cancellationToken = default);
|
||||
Task Save(WhiteboardMembership whiteboardMembership, CancellationToken cancellationToken = default);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user