mirror of
https://github.com/snowykami/neo-blog.git
synced 2025-09-05 16:56:22 +00:00
⚡️ feat: update global styles and color variables for improved theming
refactor: change import paths for DeviceContext and GravatarAvatar components fix: adjust login form API call and update UI text for clarity feat: add post API for listing posts with pagination and filtering options feat: implement BlogCard component for displaying blog posts with enhanced UI feat: create Badge component for consistent styling of labels and indicators refactor: reintroduce DeviceContext with improved functionality for theme and language management feat: define Label and Post models for better type safety and structure
This commit is contained in:
17
web/src/models/post.ts
Normal file
17
web/src/models/post.ts
Normal file
@ -0,0 +1,17 @@
|
||||
import type { Label } from "@/models/label";
|
||||
|
||||
export interface Post {
|
||||
id: number;
|
||||
title: string;
|
||||
content: string;
|
||||
cover: string | null; // 封面可以为空
|
||||
type: "markdown" | "html" | "text";
|
||||
labels: Label[] | null; // 标签可以为空
|
||||
isPrivate: boolean;
|
||||
likeCount: number;
|
||||
commentCount: number;
|
||||
viewCount: number;
|
||||
heat: number;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
}
|
Reference in New Issue
Block a user