You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
72 lines
1.5 KiB
72 lines
1.5 KiB
package com.ccic.safeliab.service; |
|
|
|
import com.ccic.safeliab.entity.ExamPapers; |
|
import com.ccic.safeliab.entity.QuestionCategories; |
|
import com.ccic.safeliab.support.BaseService; |
|
import com.ccic.safeliab.vo.InsExamPaperVO; |
|
import org.springframework.stereotype.Service; |
|
|
|
import java.util.List; |
|
import java.util.Map; |
|
|
|
@Service |
|
public interface ExamPaperService extends BaseService<ExamPapers> { |
|
|
|
/** |
|
* 获取试卷列表 |
|
* |
|
* @param page 页码 |
|
* @param num 每页数量 |
|
* @param entity 试卷表 |
|
* @return 试卷列表 |
|
*/ |
|
Map<String, Object> getList(int page, int num, ExamPapers entity); |
|
|
|
/** |
|
* 删除试卷 |
|
* |
|
* @param ids 试卷ID |
|
* @return 删除结果 |
|
*/ |
|
Map<String, Object> delExamPaper(List<Long> ids); |
|
|
|
/** |
|
* 更新试卷状态 |
|
* |
|
* @param vo 试卷vo |
|
* @return 更新结果 |
|
*/ |
|
Map<String, Object> upPaperStatus(InsExamPaperVO vo); |
|
|
|
/** |
|
* 获取试卷详情 |
|
* |
|
* @param id 试卷ID |
|
* @return 试卷详情 |
|
*/ |
|
Map<String, Object> getExamPaperDetail(String id); |
|
|
|
/** |
|
* 随机获取试题 |
|
* |
|
* @param entity 试卷表 |
|
* @return 试题 |
|
*/ |
|
List<QuestionCategories> getRandomQuestions(ExamPapers entity); |
|
|
|
/** |
|
* 添加试卷 |
|
* |
|
* @param vo 试卷 |
|
* @return 添加结果 |
|
*/ |
|
boolean addExamPaper(InsExamPaperVO vo); |
|
|
|
/** |
|
* 修改试卷 |
|
* |
|
* @param vo 试卷 |
|
* @return 修改结果 |
|
*/ |
|
boolean editExamPaper(InsExamPaperVO vo); |
|
} |