From f20140f4ea59ae7065c416e68164f1b5d7602152 Mon Sep 17 00:00:00 2001 From: lafay <2021211506@stu.hit.edu.cn> Date: Fri, 10 Apr 2026 13:20:00 +0800 Subject: [PATCH] refactor(posts): use PostImage type for images in PostDetail --- src/api/posts.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/posts.ts b/src/api/posts.ts index 69fdba3..1c47480 100644 --- a/src/api/posts.ts +++ b/src/api/posts.ts @@ -1,5 +1,5 @@ import apiClient from './client' -import type { Post, ApiResponse, PaginatedResponse } from '@/types' +import type { Post, PostImage, ApiResponse, PaginatedResponse } from '@/types' // 帖子查询参数 export interface PostQueryParams { @@ -16,7 +16,7 @@ export interface PostQueryParams { export interface PostDetail extends Post { group_id?: string group_name?: string - images?: string[] + images?: PostImage[] tags?: string[] is_pinned: boolean is_featured: boolean