import { getCookiesDecrypt } from "@/lib/utils"; import { httpGetInterceptor, } from "../http-config/http-interceptor-service"; // Types untuk Article Category export interface ArticleCategory { id: number; title: string; description: string; thumbnailUrl: string; slug: string; tags: string[]; thumbnailPath: string | null; parentId: number | null; oldCategoryId: number | null; createdById: number; statusId: number; isPublish: boolean; publishedAt: string | null; isEnabled: boolean | null; isActive: boolean; createdAt: string; updatedAt: string; } export interface ArticleCategoriesResponse { success: boolean; code: number; messages: string[]; data: ArticleCategory[]; } // Service function export async function getArticleCategories() { const url = "/article-categories"; return httpGetInterceptor(url); }