[ADD] Implementing services/handlers
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
namespace DotBased.AspNet.Authority.Repositories;
|
||||
|
||||
public class AuthorityRepository // Inherit the repository interfaces?
|
||||
{
|
||||
|
||||
}
|
@@ -0,0 +1,6 @@
|
||||
namespace DotBased.AspNet.Authority.Repositories;
|
||||
|
||||
public interface IAttributeRepository<TAttribute, TId> where TAttribute : class where TId : IEquatable<TId>
|
||||
{
|
||||
|
||||
}
|
@@ -0,0 +1,7 @@
|
||||
namespace DotBased.AspNet.Authority.Repositories;
|
||||
|
||||
public interface IAuthorityRepository
|
||||
{
|
||||
public Task<int> GetVersion();
|
||||
public Task SetVersion(int version);
|
||||
}
|
@@ -0,0 +1,6 @@
|
||||
namespace DotBased.AspNet.Authority.Repositories;
|
||||
|
||||
public interface IGroupRepository<TGroup, TId> where TGroup : class where TId : IEquatable<TId>
|
||||
{
|
||||
|
||||
}
|
@@ -0,0 +1,6 @@
|
||||
namespace DotBased.AspNet.Authority.Repositories;
|
||||
|
||||
public interface IRoleRepository<TRole, TId> where TRole : class where TId : IEquatable<TId>
|
||||
{
|
||||
|
||||
}
|
@@ -0,0 +1,9 @@
|
||||
namespace DotBased.AspNet.Authority.Repositories;
|
||||
|
||||
public interface IUserRepository<TUser, TId> where TUser : class where TId : IEquatable<TId>
|
||||
{
|
||||
public Task<TUser?> GetUserByIdAsync(TId id);
|
||||
public Task<TId> GetUserIdAsync(TUser user);
|
||||
public Task SetVersion(TUser user, long version);
|
||||
public Task SetSecurityVersion(TUser user, long version);
|
||||
}
|
Reference in New Issue
Block a user