refactor(posts): use PostImage type for images in PostDetail
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import apiClient from './client'
|
import apiClient from './client'
|
||||||
import type { Post, ApiResponse, PaginatedResponse } from '@/types'
|
import type { Post, PostImage, ApiResponse, PaginatedResponse } from '@/types'
|
||||||
|
|
||||||
// 帖子查询参数
|
// 帖子查询参数
|
||||||
export interface PostQueryParams {
|
export interface PostQueryParams {
|
||||||
@@ -16,7 +16,7 @@ export interface PostQueryParams {
|
|||||||
export interface PostDetail extends Post {
|
export interface PostDetail extends Post {
|
||||||
group_id?: string
|
group_id?: string
|
||||||
group_name?: string
|
group_name?: string
|
||||||
images?: string[]
|
images?: PostImage[]
|
||||||
tags?: string[]
|
tags?: string[]
|
||||||
is_pinned: boolean
|
is_pinned: boolean
|
||||||
is_featured: boolean
|
is_featured: boolean
|
||||||
|
|||||||
Reference in New Issue
Block a user