1 |
897851f8
|
Vojtěch Bartička
|
using Core.Entities;
|
2 |
|
|
using Core.Enums;
|
3 |
|
|
using System;
|
4 |
|
|
using System.Collections.Generic;
|
5 |
|
|
using System.Linq;
|
6 |
|
|
using System.Text;
|
7 |
|
|
using System.Threading.Tasks;
|
8 |
|
|
|
9 |
|
|
namespace Core.Services
|
10 |
|
|
{
|
11 |
|
|
public interface IUserService
|
12 |
|
|
{
|
13 |
|
|
public User? CreateUser(string username, string name, string surname, string password, ERole role);
|
14 |
|
|
public User? GetUserByUsername(string username);
|
15 |
c349bab3
|
Lukáš Vlček
|
public User? GetUserById(Guid id);
|
16 |
897851f8
|
Vojtěch Bartička
|
public User UpdateUser(User user, string? username = null, string? name = null, string? surname = null, ERole? role = null);
|
17 |
|
|
public User ChangePassword(User user, string newPassword);
|
18 |
|
|
public User? CheckUsernamePassword(string username, string password);
|
19 |
|
|
}
|
20 |
|
|
}
|