import { request } from '@/utils/request'
import type { CategoryTreeNode } from '@/types/category'

/**
 * 获取启用的分类树
 * GET /api/category/tree
 */
export function getCategoryTreeApi() {
  return request<CategoryTreeNode[]>({
    url: '/api/category/tree',
    method: 'GET'
  })
}
