mirror of
https://github.com/emailerfacu-spec/minix-front.git
synced 2026-04-04 13:40:43 -03:00
añadido editar y eliminar posts
This commit is contained in:
22
src/types.d.ts
vendored
22
src/types.d.ts
vendored
@@ -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[]?;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user