Files
goGin/frontend/types/post.ts
Beyhan Oğur 2a5b661443 first commit
2026-04-26 21:46:42 +03:00

35 lines
787 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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;
}