package com.agent.management.service;

import com.agent.management.model.vo.CategoryVO;

import java.util.List;

public interface CategoryService {

    List<CategoryVO> getCategoryTree();

    CategoryVO createCategory(Long parentId, String name);

    CategoryVO updateCategory(Long id, String name);

    void deleteCategory(Long id);

    void moveCategory(Long id, Long newParentId);

    /**
     * 获取指定分类（含所有子分类）的 ID 集合
     */
    List<Long> getDescendantCategoryIds(Long categoryId);
}
