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

/**
 * 分类树（用户端首页）
 * 后端：GET /api/category/tree
 */
export function getCategoryTreeApi() {
  return request<CategoryTreeNode[]>({
    url: '/api/category/tree',
    method: 'GET'
  })
}
