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);
|
2024-08-29 12:25:02 +01:00
|
|
|
|
Task<User> QueryUserByRefreshTokenAsync(string refreshToken);
|
2024-09-02 12:14:13 +01:00
|
|
|
|
void Save();
|
2024-08-13 12:29:01 +01:00
|
|
|
|
}
|
2024-09-02 12:14:13 +01:00
|
|
|
|
}
|