import webClient from "@/client/web-client" import type { TreeNode } from "@/types/tree" import type { Department } from "@/types/entity" export async function fetchDepartmentTree(): Promise> { const { data } = await webClient.get>("/departments/tree") return data } export async function fetchDepartments(): Promise { const { data } = await webClient.get("/departments") return data }