chore: 前端调整博客结构定义

This commit is contained in:
2025-12-24 14:02:03 +08:00
parent 004548c9df
commit 0ef987932f
2 changed files with 5 additions and 1 deletions

View File

@@ -2,5 +2,7 @@ import { Blog } from "@/lib/types/blog";
import { serverFetch } from "../server";
export async function list() {
return serverFetch<Blog[]>('/api/blog')
return serverFetch<Pick<Blog,
'id' | 'title' | 'description' | 'viewCount' | 'createdAt' | 'updatedAt' | 'deletedAt'
>[]>('/api/blog')
}