package com.zhongzheng.modules.course.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.zhongzheng.common.core.domain.entity.SysMenu;
import com.zhongzheng.modules.course.bo.MajorCategoryAddBo;
import com.zhongzheng.modules.course.bo.MajorCategoryEditBo;
import com.zhongzheng.modules.course.bo.MajorCategoryQueryBo;
import com.zhongzheng.modules.course.domain.MajorCategory;
import com.zhongzheng.modules.course.vo.MajorCategoryVo;

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

/**
 * 【专业分类】Service接口
 *
 * @author hjl
 * @date 2021-05-13
 */
public interface IMajorCategoryService extends IService<MajorCategory> {
	/**
	 * 查询单个
	 * @return
	 */
	MajorCategoryVo queryById(Long categoryId);

	/**
	 * 查询列表
	 */
	List<MajorCategoryVo> queryList(MajorCategoryQueryBo bo);

	Long insertByAddBo(MajorCategoryAddBo bo);

	Boolean updateByEditBo(MajorCategoryEditBo bo);

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

}
