package com.gkhy.exam.system.mapper;
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.gkhy.exam.system.domain.SysCategory;
|
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Param;
|
|
import java.util.List;
|
|
/**
|
* <p>
|
* 课程分类表 Mapper 接口
|
* </p>
|
*
|
* @author kzy
|
* @since 2024-06-05 11:15:14
|
*/
|
@Mapper
|
public interface SysCategoryMapper extends BaseMapper<SysCategory> {
|
/**
|
* 查询分类列表
|
*
|
* @param category 分类信息
|
* @return 分类集合
|
*/
|
List<SysCategory> selectCategoryList(SysCategory category);
|
|
/**
|
* 校验分类名称是否唯一
|
* @param name
|
* @param parentId
|
* @return
|
*/
|
SysCategory checkNameUnique(@Param("name") String name, @Param("parentId")Long parentId);
|
|
/**
|
* 根据id删除分类
|
* @param categoryId
|
* @return
|
*/
|
int deleteByCategoryId(Long categoryId);
|
}
|