package com.zhongzheng.modules.bank.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhongzheng.modules.bank.bo.QuestionSimulateAddBo;
import com.zhongzheng.modules.bank.bo.QuestionSimulateEditBo;
import com.zhongzheng.modules.bank.bo.QuestionSimulateQueryBo;
import com.zhongzheng.modules.bank.domain.QuestionSimulate;
import com.zhongzheng.modules.bank.vo.QuestionSimulateVo;

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

/**
 * 模拟题库Service接口
 *
 * @author ruoyi
 * @date 2021-06-24
 */
public interface IQuestionSimulateService extends IService<QuestionSimulate> {
	/**
	 * 查询单个
	 * @return
	 */
	QuestionSimulateVo queryById(Long simulateId);

	Map<String,Object> queryByBankId(Long bandId,Long userId);

	/**
	 * 查询列表
	 */
	List<QuestionSimulateVo> queryList(QuestionSimulateQueryBo bo);

	/**
	 * 根据新增业务对象插入模拟题库
	 * @param bo 模拟题库新增业务对象
	 * @return
	 */
	Boolean insertByAddBo(QuestionSimulateAddBo bo);

	/**
	 * 根据编辑业务对象修改模拟题库
	 * @param bo 模拟题库编辑业务对象
	 * @return
	 */
	Boolean updateByEditBo(QuestionSimulateEditBo bo);

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