25 lines
723 B
C#
25 lines
723 B
C#
using Galaeth.Core.Dtos;
|
|
using Galaeth.Services.Dtos;
|
|
|
|
namespace Galaeth.Services.Interfaces;
|
|
|
|
/// <summary>
|
|
/// User Service.
|
|
/// </summary>
|
|
public interface IUserService
|
|
{
|
|
/// <summary>
|
|
/// Create a new user and return its user dto.
|
|
/// </summary>
|
|
/// <param name="createUser">Instance of <see cref="CreateUserDto"/>.</param>
|
|
/// <returns>Instance of <see cref="UserDto"/>.</returns>
|
|
Task<UserDto> CreateNewUser(CreateUserDto createUser);
|
|
|
|
/// <summary>
|
|
/// Fetch a user based on their user id.
|
|
/// </summary>
|
|
/// <param name="userId">User id.</param>
|
|
/// <returns>Instance of <see cref="UserDto"/>, or null if not found.</returns>
|
|
Task<UserDto> FindById(string userId);
|
|
}
|