Interface IUserMapper


public interface IUserMapper
Mapper class for mapping User entities to UserDTOs.
  • Method Details

    • toUser

      callofproject.dev.repository.authentication.entity.User toUser(UserSignUpRequestDTO dto)
      Maps a UserSignUpRequestDTO to a User entity.
      Parameters:
      dto - The UserSignUpRequestDTO to be mapped.
      Returns:
      A User entity representing the mapped UserSignUpRequestDTO.
    • toUserShowingAdminDTO

      UserShowingAdminDTO toUserShowingAdminDTO(callofproject.dev.repository.authentication.entity.User user)
      Maps a User entity to a UserDTO.
      Parameters:
      user - The User entity to be mapped.
      Returns:
      A UserDTO representing the mapped User entity.
    • toUserDTO

      UserDTO toUserDTO(callofproject.dev.repository.authentication.entity.User user)
      Maps a User entity to a UserDTO.
      Parameters:
      user - The User entity to be mapped.
      Returns:
      A UserDTO representing the mapped User entity.
    • toUsersShowingAdminDTO

      default UsersShowingAdminDTO toUsersShowingAdminDTO(List<UserShowingAdminDTO> list)
      Maps a list of User entities to a UsersShowingAdminDTO.
      Parameters:
      list - The list of User entities to be mapped.
      Returns:
      A UsersDTO representing the mapped list of User entities.
    • toUsersDTO

      default UsersDTO toUsersDTO(List<UserDTO> list)
      Maps a list of User entities to a UsersDTO.
      Parameters:
      list - The list of User entities to be mapped.
      Returns:
      A UsersDTO representing the mapped list of User entities.