2024-08-15 14:21:17 +01:00
|
|
|
|
using AuthorizationService.Models;
|
2024-08-13 12:29:01 +01:00
|
|
|
|
|
2024-08-15 14:21:17 +01:00
|
|
|
|
namespace AuthorizationService.Persistence.Repositories
|
2024-08-13 12:29:01 +01:00
|
|
|
|
{
|
|
|
|
|
public interface IUserRepository
|
|
|
|
|
{
|
|
|
|
|
Task<string> CreateUserAsync(User user);
|
|
|
|
|
Task<bool> DeleteUserAsync(string id);
|
|
|
|
|
Task<List<User>> QueryAllUsersAsync();
|
|
|
|
|
Task<User> QueryUserByIdAsync(string id);
|
2024-08-14 09:28:12 +01:00
|
|
|
|
Task<User> QueryUserByEmailAsync(string email);
|
2024-08-13 12:29:01 +01:00
|
|
|
|
Task<bool> UpdateUserAsync(User user);
|
2024-08-16 11:53:39 +01:00
|
|
|
|
Task<bool> UpdateUserPasswordAsync(User user);
|
2024-08-13 12:29:01 +01:00
|
|
|
|
}
|
|
|
|
|
}
|