package com.seer.teach.teacher.convert;

import com.seer.teach.teacher.common.resp.SimilarQuestionResp;
import com.seer.teach.teacher.common.resp.WrongQuestionResp;
import com.seer.teach.teacher.module.entity.BankQuestionsEntity;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

import java.util.List;


@Mapper
public interface WrongQuestionBookConvert {

    WrongQuestionBookConvert INSTANCE = Mappers.getMapper(WrongQuestionBookConvert.class);

    @Mapping(source = "totalWrongCount",target = "count")
    WrongQuestionResp toWrongQuestion(String totalWrongCount);

    SimilarQuestionResp toSimilarQuestion(BankQuestionsEntity bankQuestionsEntity);

    List<SimilarQuestionResp> toSimilarQuestionList(List<BankQuestionsEntity> bankQuestionsEntity);
}
