1
|
using Core.Entities;
|
2
|
using Models.Enums;
|
3
|
using Models.Users;
|
4
|
using System;
|
5
|
using System.Collections.Generic;
|
6
|
using System.Linq;
|
7
|
using System.Text;
|
8
|
using System.Threading.Tasks;
|
9
|
|
10
|
namespace Core.Services
|
11
|
{
|
12
|
public interface IUserService
|
13
|
{
|
14
|
public User? CreateUser(string username, string name, string surname, string password, ERole role);
|
15
|
public User? GetUserByUsername(string username);
|
16
|
public User? GetUserById(Guid id);
|
17
|
public User UpdateUser(User user, string? username = null, string? name = null, string? surname = null, ERole? role = null);
|
18
|
public User? UpdateUser(Guid userId, string? username = null, string? name = null, string? surname = null, ERole? role = null);
|
19
|
public User ChangePassword(User user, string newPassword);
|
20
|
public User? ChangePassword(Guid userId, string newPassword);
|
21
|
public User? CheckUsernamePassword(string username, string password);
|
22
|
public UserList GetUsers();
|
23
|
public void DeleteUser(Guid userId);
|
24
|
}
|
25
|
}
|