first commit

This commit is contained in:
Beyhan Oğur
2026-04-26 22:18:17 +03:00
commit 7b2b27a42c
1660 changed files with 123050 additions and 0 deletions

56
types/blog.ts Normal file
View File

@@ -0,0 +1,56 @@
export interface BlogTag {
tag: string;
slug: string;
}
export interface BlogCategory {
title: string;
parent: string; // "Linux" gibi string değer
is_active: boolean;
created_at: string;
order: number;
slug: string;
image: string | null;
keywords: string;
description: string;
}
export interface BlogComment {
id: number;
user: string;
post: number;
title: string;
body: string;
created_at: string;
slug: string;
parent: number | null;
child: BlogComment[];
}
export interface BlogPost {
id?: number; // Backend'den gelebilir veya gelmeyebilir
title: string;
content: string;
categories: BlogCategory[];
keywords: string;
tags: BlogTag[];
image: string;
thumb: string;
video: string;
slug: string;
created_at: string;
updated_at: string;
is_active: boolean;
is_front: boolean;
comments?: BlogComment[];
}
export interface BlogPostListResponse {
count: number;
next: string | null;
previous: string | null;
results: BlogPost[];
}