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.
79 lines
1.9 KiB
79 lines
1.9 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 id 试卷记录的主键 |
|
* @return 删除操作是否成功 |
|
*/ |
|
boolean deleteExamPaperById(Long id); |
|
|
|
/** |
|
* 根据主键批量删除试卷记录 |
|
* @param ids 试卷记录的主键列表 |
|
* @return 删除操作是否成功 |
|
*/ |
|
boolean deleteExamPaperListByIds(List<Long> ids); |
|
|
|
/** |
|
* 更新试卷状态 |
|
* @param vo 试题 VO 列表 |
|
* @return 添加是否成功 |
|
*/ |
|
boolean updatePaperStatus(InsExamPaperVO vo); |
|
|
|
/** |
|
* 批量更新试卷状态 |
|
* @param vos 试卷记录的主键列表 |
|
* @return 删除操作是否成功 |
|
*/ |
|
boolean batchUpdatePaperStatus(List<InsExamPaperVO> vos); |
|
|
|
/** |
|
* 添加试题 |
|
* @param vo 试题 VO 列表 |
|
* @return 添加是否成功 |
|
*/ |
|
int add(List<InsExamPaperVO> vo); |
|
|
|
/** |
|
* 修改试题 |
|
* @param vo 试题 VO 列表 |
|
* @return 添加是否成功 |
|
*/ |
|
boolean update(InsExamPaperVO vo); |
|
|
|
/** |
|
* 获取试卷列表 |
|
* @param id 题目ID |
|
* @return 题目详情 |
|
*/ |
|
ExamPapers getDetail(String id); |
|
|
|
/** |
|
* 随机获取题目 |
|
* @param entity 试卷表 |
|
* @return 试卷列表 |
|
*/ |
|
List<QuestionCategories> getRandomQuestions(ExamPapers entity); |
|
}
|
|
|