💄 Optimize post detail view

This commit is contained in:
2025-11-06 01:11:23 +08:00
parent f851bcd646
commit 6da1a4d21c
3 changed files with 76 additions and 153 deletions

View File

@@ -73,11 +73,19 @@ export interface SnPost {
publisherId: string;
publisher: SnPublisher;
awards: unknown | null;
tags: string[];
categories: string[];
tags: SnPostCategory[];
categories: SnPostCategory[];
isTruncated: boolean;
resourceIdentifier: string;
createdAt: string;
updatedAt: string;
deletedAt: string | null;
}
export interface SnPostCategory {
id: string;
slug: string;
name?: string;
posts?: SnPost[];
usage?: number;
}