package org.jeecg.modules.oroqen.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.oroqen.entity.OroqenCultureCategory;

import java.util.List;

/**
 * @Description: 文化内容分类
 * @Author: jeecg-boot
 * @Date: 2025-01-08
 * @Version: V1.0
 */
public interface IOroqenCultureCategoryService extends IService<OroqenCultureCategory> {

    /**
     * 获取树形分类列表
     */
    List<OroqenCultureCategory> getTreeList();

    /**
     * 根据父级ID获取子分类
     */
    List<OroqenCultureCategory> getChildrenByParentId(String parentId);

    /**
     * 检查分类编码是否存在
     */
    boolean existsByCategoryCode(String categoryCode, String excludeId);
}