mirror of
https://github.com/snowykami/neo-blog.git
synced 2025-09-04 00:06:22 +00:00
20 lines
501 B
TypeScript
20 lines
501 B
TypeScript
import type { Label } from "@/models/label";
|
|
import type { User } from "./user";
|
|
|
|
export interface Post {
|
|
id: number;
|
|
title: string;
|
|
content: string;
|
|
cover: string | null; // 封面可以为空
|
|
type: "markdown" | "html" | "text";
|
|
labels: Label[] | null; // 标签可以为空
|
|
user: User
|
|
isPrivate: boolean;
|
|
isOriginal: boolean;
|
|
likeCount: number;
|
|
commentCount: number;
|
|
viewCount: number;
|
|
heat: number;
|
|
createdAt: string;
|
|
updatedAt: string;
|
|
} |