añadido editar y eliminar posts

This commit is contained in:
2025-11-25 19:15:46 -03:00
parent dd49f853b4
commit e39bbe7047
20 changed files with 490 additions and 31 deletions

22
src/types.d.ts vendored
View File

@@ -1,6 +1,10 @@
export interface Post {
_id: string;
id: string;
authorId: string;
authorDisplayName: string;
authorImageUrl: string;
authorName: string;
content: string;
imageUrl?: string;
parentPostId?: string;
@@ -52,3 +56,21 @@ export interface CreatePostDto {
imageUrl: string?;
parentPostId: string?;
}
export interface PostResponseDto {
id: string;
authorId: string;
authorImageUrl: string?;
authorDisplayName: string;
authorName: string;
content: string;
imageUrl: string?;
parentPostId: string?;
likesCount: number;
repliesCount: number;
createdAt: string;
updatedAt: string?;
isEdited: boolean;
visibility: string;
hashtags: string[]?;
}