package com.javaweb.cms.mapper; import com.javaweb.cms.domain.Category; import java.util.List; /** * 栏目分类Mapper接口 * * @author wujiyue * @date 2019-10-28 */ public interface CategoryMapper { /** * 查询栏目分类 * * @param categoryId 栏目分类ID * @return 栏目分类 */ public Category selectCategoryById(Long categoryId); /** * 查询栏目分类列表 * * @param category 栏目分类 * @return 栏目分类集合 */ public List selectCategoryList(Category category); /** * 新增栏目分类 * * @param category 栏目分类 * @return 结果 */ public int insertCategory(Category category); /** * 修改栏目分类 * * @param category 栏目分类 * @return 结果 */ public int updateCategory(Category category); /** * 删除栏目分类 * * @param categoryId 栏目分类ID * @return 结果 */ public int deleteCategoryById(String categoryId); /** * 批量删除栏目分类 * * @param categoryIds 需要删除的数据ID * @return 结果 */ public int deleteCategoryByIds(String[] categoryIds); /** * 查询导航栏目 * @param category * @return */ public List selectNavCategories(Category category); }