package com.tamguo.admin.service;

import java.util.List;

import com.baomidou.mybatisplus.plugins.Page;
import com.tamguo.admin.model.QuestionEntity;

public interface IQuestionService {

	/** 根据章节获取问题 */
	public Page<QuestionEntity> findByChapterId(String chapterId ,  Integer offset ,  Integer limit);
	
	/** 获取审核通过的题目 */
	public QuestionEntity findNormalQuestion(String uid);

	public List<QuestionEntity> findPaperQuestion(String paperId);

	public Page<QuestionEntity> list(String name, Integer page, Integer limit);

	public QuestionEntity select(String questionId);

	public void deleteBatch(String[] questionIds);

	public void addQuestion(QuestionEntity question);

	public Page<QuestionEntity> queryQuestionList(QuestionEntity question , Integer page , Integer limit);

	public void save(QuestionEntity question);

	public void update(QuestionEntity question);

	public void audit(String[] questionIds);

	public void notAudit(String[] questionIds);
	
}
