| package com.matrix.system.app.mapper; | 
|   | 
| import com.matrix.system.app.dto.QuestionAnswerDto; | 
| import com.matrix.system.app.dto.QuestionAnswerItemDto; | 
| import com.matrix.system.app.vo.QuestionVo; | 
| import com.matrix.system.hive.bean.Question; | 
| import com.matrix.system.hive.bean.VipAnswer; | 
| import org.mapstruct.Mapper; | 
| import org.mapstruct.Mapping; | 
| import org.mapstruct.factory.Mappers; | 
|   | 
| import java.util.List; | 
|   | 
| /** | 
|  * @author wzy | 
|  * @date 2020-12-28 | 
|  **/ | 
| @Mapper | 
| public abstract class QuestionMapper { | 
|     public static final QuestionMapper INSTANCE = Mappers.getMapper(QuestionMapper.class); | 
|   | 
|     public abstract QuestionVo entityToVo(Question question); | 
|   | 
|     public abstract List<QuestionVo> entitiesToVos(List<Question> list); | 
|   | 
|     @Mapping(source = "questionId", target = "quesionId") | 
|     public abstract VipAnswer dtoToVipAnswer(QuestionAnswerItemDto questionAnswerDto); | 
|   | 
|     public abstract List<VipAnswer> dtosToVipAnswers(List<QuestionAnswerItemDto> list); | 
|   | 
| } |