mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 03:37:56 +01:00
Add edit and delete actions to posts and comments (#125)
This commit is contained in:
committed by
GitHub
parent
07ca2a304a
commit
bc15140512
@@ -5,6 +5,7 @@ interface IComment {
|
||||
isPostUpdate: boolean;
|
||||
userFullName: string;
|
||||
userEmail: string;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
}
|
||||
|
||||
|
||||
@@ -9,6 +9,8 @@ interface IPost {
|
||||
commentsCount: number;
|
||||
hotness: number;
|
||||
userId: number;
|
||||
userEmail: string;
|
||||
userFullName: string;
|
||||
createdAt: string;
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ interface IPostStatusChange {
|
||||
postStatusId: number;
|
||||
userFullName: string;
|
||||
userEmail: string;
|
||||
updatedAt: string;
|
||||
createdAt: string;
|
||||
}
|
||||
|
||||
export default IPostStatusChange;
|
||||
@@ -5,6 +5,7 @@ interface ICommentJSON {
|
||||
is_post_update: boolean;
|
||||
user_full_name: string;
|
||||
user_email: string;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
}
|
||||
|
||||
|
||||
@@ -9,6 +9,8 @@ interface IPostJSON {
|
||||
comments_count: number;
|
||||
hotness: number;
|
||||
user_id: number;
|
||||
user_email: string;
|
||||
user_full_name: string;
|
||||
created_at: string;
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ interface IPostStatusChangeJSON {
|
||||
post_status_id: number;
|
||||
user_full_name: string;
|
||||
user_email: string;
|
||||
updated_at: string;
|
||||
created_at: string;
|
||||
}
|
||||
|
||||
export default IPostStatusChangeJSON;
|
||||
Reference in New Issue
Block a user