2025-12-17 22:37:46 +07:00
|
|
|
package ru.soune.nocopy.mapper;
|
2025-11-27 03:05:07 +07:00
|
|
|
|
|
|
|
|
import org.mapstruct.Mapper;
|
|
|
|
|
import org.mapstruct.NullValuePropertyMappingStrategy;
|
|
|
|
|
import org.mapstruct.factory.Mappers;
|
2025-12-17 22:37:46 +07:00
|
|
|
import ru.soune.nocopy.dto.UserDTO;
|
|
|
|
|
import ru.soune.nocopy.entity.User;
|
2025-11-27 03:05:07 +07:00
|
|
|
|
|
|
|
|
@Mapper(componentModel = "spring",
|
|
|
|
|
nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE)
|
|
|
|
|
public interface UserMapper {
|
|
|
|
|
|
|
|
|
|
UserMapper INSTANCE = Mappers.getMapper(UserMapper.class);
|
|
|
|
|
|
|
|
|
|
UserDTO toDTO(User user);
|
|
|
|
|
}
|