|
package org.springblade.modules.simulateexam.service;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.extension.service.IService;
|
import org.springblade.modules.simulateexam.entity.SimulateExamRecord;
|
import org.springblade.modules.simulateexam.vo.SimulateExamRecordVO;
|
import org.springblade.modules.simulateexam.vo.SimulateExamScoreVO;
|
|
/**
|
* 模拟考试记录服务类
|
*
|
* @author zhongrj
|
* @since 2022-02-23
|
*/
|
public interface SimulateExamRecordService extends IService<SimulateExamRecord> {
|
|
/**
|
* 自定义分页
|
*
|
* @param page
|
* @param simulateExamRecordVO
|
* @return
|
*/
|
IPage<SimulateExamRecordVO> selectSimulateExamRecordPage(IPage<SimulateExamRecordVO> page, SimulateExamRecordVO simulateExamRecordVO);
|
|
/**
|
* 首次点击开始考试,创建模拟考试
|
* @param simulateExamRecord 模拟考试记录对象信息
|
* @return
|
*/
|
Object insertSimulateExamRecord(SimulateExamRecord simulateExamRecord);
|
|
/**
|
* 暂停模拟考试
|
* @param simulateExamRecord
|
* @return
|
*/
|
Object pauseExam(SimulateExamRecord simulateExamRecord);
|
|
/**
|
* 模拟考试开始页面,查询是否有暂停中的模拟考试
|
* @param simulateExamRecord 模拟考试记录对象信息
|
* @return
|
*/
|
Object getSimulateExamRecordInfo(SimulateExamRecord simulateExamRecord);
|
|
/**
|
* 考试暂停后继续,1查询所有的答题信息,2查询所有的已答信息 3其他信息
|
* @param simulateExamRecord 必须包含 模拟考试id, type 1: 继续考试 2: 放弃之前的考试,重新生成题目考试
|
* @return
|
*/
|
Object getSimulateExamRefreshInfo(SimulateExamRecordVO simulateExamRecord);
|
|
/**
|
* 提交考试
|
*
|
* @param simulateExamScore 模拟考试成绩信息对象
|
* @return
|
*/
|
Object saveSimulateExam(SimulateExamScoreVO simulateExamScore);
|
}
|