package com.zhongzheng.modules.course.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhongzheng.modules.course.bo.CourseStreamingBusinessAddBo;
import com.zhongzheng.modules.course.bo.CourseStreamingBusinessEditBo;
import com.zhongzheng.modules.course.bo.CourseStreamingBusinessQueryBo;
import com.zhongzheng.modules.course.domain.CourseStreamingBusiness;
import com.zhongzheng.modules.course.vo.CourseStreamingBusinessVo;

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

/**
 * 课程流适用业务关系Service接口
 *
 * @author hjl
 * @date 2021-10-11
 */
public interface ICourseStreamingBusinessService extends IService<CourseStreamingBusiness> {
	/**
	 * 查询单个
	 * @return
	 */
	CourseStreamingBusinessVo queryById(Long id);

	List<CourseStreamingBusiness> getListById(Long id);

	/**
	 * 查询列表
	 */
	List<CourseStreamingBusinessVo> queryList(CourseStreamingBusinessQueryBo bo);

	/**
	 * 根据新增业务对象插入课程流适用业务关系
	 * @param bo 课程流适用业务关系新增业务对象
	 * @return
	 */
	Boolean insertByAddBo(CourseStreamingBusinessAddBo bo);

	/**
	 * 根据编辑业务对象修改课程流适用业务关系
	 * @param bo 课程流适用业务关系编辑业务对象
	 * @return
	 */
	Boolean updateByEditBo(CourseStreamingBusinessEditBo bo);

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