2025-12-10 19:12:54 +07:00
|
|
|
package ru.soune.nocopy.mapper;
|
2025-11-26 13:03:20 +07:00
|
|
|
|
|
|
|
|
import org.mapstruct.Mapper;
|
|
|
|
|
import org.mapstruct.MappingTarget;
|
|
|
|
|
import org.mapstruct.NullValuePropertyMappingStrategy;
|
|
|
|
|
import org.mapstruct.factory.Mappers;
|
2026-01-20 03:47:51 +07:00
|
|
|
import ru.soune.nocopy.dto.user.UserContentUpdateRequest;
|
2026-01-16 20:20:14 +07:00
|
|
|
import ru.soune.nocopy.entity.user.UserContent;
|
2025-11-26 13:03:20 +07:00
|
|
|
|
|
|
|
|
@Mapper(componentModel = "spring",
|
|
|
|
|
nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE)
|
|
|
|
|
public interface UserContentMapper {
|
|
|
|
|
|
|
|
|
|
UserContentMapper INSTANCE = Mappers.getMapper(UserContentMapper.class);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void updateEntityFromDto(UserContentUpdateRequest dto, @MappingTarget UserContent entity);
|
|
|
|
|
}
|