package com.ots.project.exam.service;
|
|
import com.ots.project.exam.domain.TQuestion;
|
import com.ots.project.exam.viewmodel.QuestionEditRequestVM;
|
|
import java.util.List;
|
import java.util.Map;
|
|
/**
|
* 题目列表Service接口
|
*
|
* @author Shawn
|
* @date 2019-11-20
|
*/
|
public interface ITQuestionService {
|
/**
|
* 查询题目列表
|
*
|
* @param id 题目列表ID
|
* @return 题目列表
|
*/
|
TQuestion selectTQuestionById(Long id);
|
|
List<TQuestion> selectTQuestionByIds(List<Long> ids);
|
|
List<TQuestion> selectTQuestionByPermanentIds(List<String> ids);
|
|
/**
|
* 查询题目列表列表
|
*
|
* @param tQuestion 题目列表
|
* @return 题目列表集合
|
*/
|
List<TQuestion> selectTQuestionList(TQuestion tQuestion);
|
|
List<TQuestion> selectTQuestionsForProductAddQuestion(TQuestion tQuestion);
|
|
/**
|
* 新增题目列表
|
*
|
* @param tQuestion 题目列表
|
* @return 结果
|
*/
|
int insertTQuestion(TQuestion tQuestion);
|
|
/**
|
* 修改题目列表
|
*
|
* @param tQuestion 题目列表
|
* @return 结果
|
*/
|
int updateTQuestion(TQuestion tQuestion);
|
|
/**
|
* 批量删除题目列表
|
*
|
* @param ids 需要删除的数据ID
|
* @return 结果
|
*/
|
int deleteTQuestionByIds(String ids);
|
|
int deleteQuestionContent(TQuestion tQuestion);
|
|
/**
|
* 删除题目列表信息
|
*
|
* @param id 题目列表ID
|
* @return 结果
|
*/
|
int deleteTQuestionById(Long id);
|
|
/**
|
* 返回给答题vue端的数据
|
*
|
* @param
|
* @return
|
*/
|
QuestionEditRequestVM getQuestionEditRequestVM(TQuestion question);
|
|
/**
|
* 插入导入的题目
|
*
|
* @param excelList
|
* @return
|
*/
|
String insertImportQuestion(List<Map<Integer, String>> excelList);
|
}
|