feat(contents): enhance user-specific data handling and admin content management
Integrate user-specific fields (`isLiked`, `favoritesCount`) in content APIs and improve `ContentCard` through reactive updates. Add admin-only content deletion support. Refactor services and repository to enrich responses with additional data (author details, tags).
This commit is contained in:
@@ -16,6 +16,7 @@ export interface Content {
|
||||
views: number;
|
||||
usageCount: number;
|
||||
favoritesCount: number;
|
||||
isLiked?: boolean;
|
||||
tags: (string | Tag)[];
|
||||
category?: Category;
|
||||
authorId: string;
|
||||
@@ -39,7 +40,7 @@ export interface Category {
|
||||
|
||||
export interface PaginatedResponse<T> {
|
||||
data: T[];
|
||||
total: number;
|
||||
totalCount: number;
|
||||
limit: number;
|
||||
offset: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user