Interface IUserMapper
public interface IUserMapper
- Author:
- Nuri Can ÖZTÜRK Mapper interface for mapping between UserDTO and User entity. It provides a method to convert a UserDTO to a User entity.
-
Method Summary
Modifier and TypeMethodDescriptioncallofproject.dev.data.community.entity.UsertoUser(UserKafkaDTO userKafkaDTO) Maps a UserDTO to a User entity.toUserDTO(callofproject.dev.data.community.entity.User user) Maps a User entity to a UserDTO.default UsersDTOtoUsersDTO(List<UserDTO> users) Maps a list of User entities to a UsersDTO.
-
Method Details
-
toUser
Maps a UserDTO to a User entity.- Parameters:
userKafkaDTO- The UserDTO to map.- Returns:
- The mapped User entity.
-
toUserDTO
Maps a User entity to a UserDTO.- Parameters:
user- The User entity to map.- Returns:
- The mapped UserDTO.
-
toUsersDTO
Maps a list of User entities to a UsersDTO.- Parameters:
users- The list of User entities to map.- Returns:
- The mapped UsersDTO.
-