first commit

This commit is contained in:
Beyhan Oğur
2026-04-26 21:46:42 +03:00
commit 2a5b661443
202 changed files with 49770 additions and 0 deletions

34
frontend/types/post.ts Normal file
View File

@@ -0,0 +1,34 @@
import { Category } from "./category";
import { Tag } from "./tag";
export interface Post {
id?: number; // normalized id (frontend kullanım)
ID?: number; // GORM model ID (backend JSON)
created_at?: string;
updated_at?: string;
deleted_at?: string | null;
CreatedAt?: string; // GORM model timestamp alanları
UpdatedAt?: string;
DeletedAt?: string | null;
title: string;
slug: string;
content: string;
images: string;
width: number;
height: number;
quality: number;
format: string;
categories?: Category[];
tags?: Tag[];
}
export interface PostListResponse {
items: Post[];
page: number;
per_page: number;
total: number;
}
export interface PostDetailResponse {
data: Post;
}