package com.zhongzheng.modules.exam.service;

import com.zhongzheng.modules.exam.domain.ExamKnowledgeBusiness;
import com.zhongzheng.modules.exam.vo.ExamKnowledgeBusinessVo;
import com.zhongzheng.modules.exam.bo.ExamKnowledgeBusinessQueryBo;
import com.zhongzheng.modules.exam.bo.ExamKnowledgeBusinessAddBo;
import com.zhongzheng.modules.exam.bo.ExamKnowledgeBusinessEditBo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Collection;
import java.util.List;

/**
 * 知识点Service接口
 *
 * @author ruoyi
 * @date 2021-10-19
 */
public interface IExamKnowledgeBusinessService extends IService<ExamKnowledgeBusiness> {
	/**
	 * 查询单个
	 * @return
	 */
	ExamKnowledgeBusinessVo queryById(Long id);

	/**
	 * 查询列表
	 */
	List<ExamKnowledgeBusinessVo> queryList(ExamKnowledgeBusinessQueryBo bo);

	/**
	 * 根据新增业务对象插入知识点
	 * @param bo 知识点新增业务对象
	 * @return
	 */
	Boolean insertByAddBo(ExamKnowledgeBusinessAddBo bo);

	/**
	 * 根据编辑业务对象修改知识点
	 * @param bo 知识点编辑业务对象
	 * @return
	 */
	Boolean updateByEditBo(ExamKnowledgeBusinessEditBo bo);

	/**
	 * 校验并删除数据
	 * @param ids 主键集合
	 * @param isValid 是否校验,true-删除前校验,false-不校验
	 * @return
	 */
	Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
