NCP-3 add usercontent crud's,dto,exception and start restcontroller
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package ru.soune.no_copy.mapper;
|
||||
|
||||
import org.mapstruct.Mapper;
|
||||
import org.mapstruct.MappingTarget;
|
||||
import org.mapstruct.NullValuePropertyMappingStrategy;
|
||||
import org.mapstruct.factory.Mappers;
|
||||
import ru.soune.no_copy.dto.UserContentUpdateRequest;
|
||||
import ru.soune.no_copy.entity.UserContent;
|
||||
|
||||
@Mapper(componentModel = "spring",
|
||||
nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE)
|
||||
public interface UserContentMapper {
|
||||
|
||||
UserContentMapper INSTANCE = Mappers.getMapper(UserContentMapper.class);
|
||||
|
||||
|
||||
void updateEntityFromDto(UserContentUpdateRequest dto, @MappingTarget UserContent entity);
|
||||
}
|
||||
Reference in New Issue
Block a user