2024-08-13 12:29:01 +01:00
|
|
|
|
using API.Models;
|
|
|
|
|
|
|
|
|
|
namespace API.Persistence.Repositories
|
|
|
|
|
{
|
|
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
}
|