galaeth-draft/Galaeth.Services/Interfaces/IUserService.cs

25 lines
723 B
C#
Raw Permalink Normal View History

2024-11-17 10:31:01 +01:00
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);
}