Files
blog/src/types/post.ts
2026-08-14 23:55:52 +08:00

33 lines
504 B
TypeScript

export type Tag = {
id: number
code: string
name: string
}
export type Post = {
title: string;
summary: string;
slug: string;
cover: string;
category_name: string;
category_code: string;
category_id?: number;
published_at: string;
view_count: number;
content: string;
tags: Tag[]
}
export type CategoriesStats = {
id: number;
name: string;
code: string
post_count: number;
}
export type PostForSitemap = {
slug: string
created_at: string
updated_at: string
}