1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 04:46:40 +07:00

let users like comments

This commit is contained in:
Fedor Katurov 2023-11-01 20:56:47 +06:00
parent 822f51f5de
commit bd802ede10
22 changed files with 332 additions and 154 deletions

View file

@ -122,6 +122,8 @@ export interface IComment {
text: string;
files: IFile[];
user?: IUser;
like_count?: number;
liked?: boolean;
created_at?: string;
update_at?: string;

View file

@ -47,6 +47,10 @@ export type ApiPostCommentRequest = {
id: INode['id'];
data: IComment;
};
export type ApiLikeCommentRequest = {
liked: boolean;
};
export type ApiPostCommentResult = {
comment: IComment;
};