mirror of
https://github.com/snowykami/neo-blog.git
synced 2025-09-03 15:56:22 +00:00
29 lines
652 B
TypeScript
29 lines
652 B
TypeScript
import type { Label } from "@/models/label";
|
|
import type { User } from "./user";
|
|
|
|
export interface Post {
|
|
description: string;
|
|
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;
|
|
}
|
|
|
|
export interface ListPostsParams {
|
|
page?: number
|
|
size?: number
|
|
orderBy?: string
|
|
desc?: boolean
|
|
keywords?: string
|
|
} |