package com.github.tangyi.exam.mapper;

import com.github.tangyi.common.core.persistence.CrudMapper;
import com.github.tangyi.exam.api.module.Answer;
import org.apache.ibatis.annotations.Mapper;

/**
 * 答题Mapper
 *
 * @author tangyi
 * @date 2018/11/8 21:09
 */
@Mapper
public interface AnswerMapper extends CrudMapper<Answer> {

    /**
     * 根据用户ID、考试ID、考试记录ID、题目ID查找答题
     * @param answer answer
     * @return Answer
     * @author tangyi
     * @date 2019/01/21 19:38
     */
    Answer getAnswer(Answer answer);
}
