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:
Mathis HERRIOT
2026-01-14 21:43:44 +01:00
parent fb7ddde42e
commit d7c2a965a0
6 changed files with 152 additions and 14 deletions

View File

@@ -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;
}