2025-12-10 19:12:54 +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;
|
2026-01-20 03:47:51 +07:00
|
|
|
import ru.soune.nocopy.dto.user.UserDTO;
|
2026-01-16 20:20:14 +07:00
|
|
|
import ru.soune.nocopy.entity.user.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);
|
|
|
|
|
}
|