[xingyu.guo] feat: 【创建学习残片】API
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
package com.guo.learningprogresstracker.mapStruct;
|
||||
|
||||
import com.guo.learningprogresstracker.dto.request.CreateFragmentsRequest;
|
||||
import com.guo.learningprogresstracker.entity.StudyReportFragmentsEntity;
|
||||
import org.mapstruct.Mapper;
|
||||
import org.mapstruct.ReportingPolicy;
|
||||
import org.mapstruct.factory.Mappers;
|
||||
|
||||
@Mapper(componentModel = "spring",unmappedTargetPolicy = ReportingPolicy.IGNORE)
|
||||
public interface FragmentsConvert {
|
||||
FragmentsConvert MAPPER = Mappers.getMapper(FragmentsConvert.class);
|
||||
|
||||
StudyReportFragmentsEntity toFragmentsEntity(CreateFragmentsRequest request);
|
||||
}
|
||||
Reference in New Issue
Block a user