2025-01-08 15:55:00 +01:00
|
|
|
using DotBased.AspNet.Authority.Models.Authority;
|
|
|
|
|
2024-12-25 22:50:04 +01:00
|
|
|
namespace DotBased.AspNet.Authority.Repositories;
|
2024-12-21 15:30:17 +01:00
|
|
|
|
2025-01-08 15:55:00 +01:00
|
|
|
public interface IUserRepository
|
2024-12-21 15:30:17 +01:00
|
|
|
{
|
2025-01-08 15:55:00 +01:00
|
|
|
public Task<AuthorityUser?> GetAuthorityUserByIdAsync(string id, CancellationToken? cancellationToken = null);
|
|
|
|
public Task<string> GetAuthorityUserIdAsync(AuthorityUser user, CancellationToken? cancellationToken = null);
|
|
|
|
public Task<Tuple<List<AuthorityUser>?, int>> GetAuthorityUsersAsync(string query, int maxResults = 20, int offset = 0, CancellationToken? cancellationToken = null);
|
|
|
|
public Task<AuthorityUser?> GetAuthorityUserByEmailAsync(string email, CancellationToken? cancellationToken = null);
|
|
|
|
public Task SetVersionAsync(AuthorityUser user, long version, CancellationToken? cancellationToken = null);
|
|
|
|
public Task<long> GetVersionAsync(AuthorityUser user, CancellationToken? cancellationToken = null);
|
|
|
|
public Task SetSecurityVersionAsync(AuthorityUser user, long version, CancellationToken? cancellationToken = null);
|
|
|
|
public Task<long> GetSecurityVersionAsync(AuthorityUser user, CancellationToken? cancellationToken = null);
|
|
|
|
public Task<AuthorityUser?> CreateUserAsync(AuthorityUser user, CancellationToken? cancellationToken = null);
|
|
|
|
public Task<AuthorityUser?> UpdateUserAsync(AuthorityUser user, CancellationToken? cancellationToken = null);
|
|
|
|
public Task<bool> DeleteUserAsync(AuthorityUser user, CancellationToken? cancellationToken = null);
|
2024-12-21 15:30:17 +01:00
|
|
|
}
|