package com.zhongzheng.modules.course.service;

import com.zhongzheng.modules.course.domain.CourseHandoutsBusiness;
import com.zhongzheng.modules.course.vo.CourseHandoutsBusinessVo;
import com.zhongzheng.modules.course.bo.CourseHandoutsBusinessQueryBo;
import com.zhongzheng.modules.course.bo.CourseHandoutsBusinessAddBo;
import com.zhongzheng.modules.course.bo.CourseHandoutsBusinessEditBo;
import com.baomidou.mybatisplus.extension.service.IService;

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

/**
 * 讲义关联业务Service接口
 *
 * @author ruoyi
 * @date 2021-11-02
 */
public interface ICourseHandoutsBusinessService extends IService<CourseHandoutsBusiness> {
	/**
	 * 查询单个
	 * @return
	 */
	CourseHandoutsBusinessVo queryById(Long id);

	/**
	 * 查询列表
	 */
	List<CourseHandoutsBusinessVo> queryList(CourseHandoutsBusinessQueryBo bo);

	/**
	 * 根据新增业务对象插入讲义关联业务
	 * @param bo 讲义关联业务新增业务对象
	 * @return
	 */
	Boolean insertByAddBo(CourseHandoutsBusinessAddBo bo);

	/**
	 * 根据编辑业务对象修改讲义关联业务
	 * @param bo 讲义关联业务编辑业务对象
	 * @return
	 */
	Boolean updateByEditBo(CourseHandoutsBusinessEditBo bo);

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