updated comment

This commit is contained in:
landaiqing
2024-09-24 01:14:50 +08:00
parent 74dc2b36c8
commit a5624466ae
8 changed files with 668 additions and 314 deletions

View File

@@ -1 +1,39 @@
export interface Comment {
comments: CommentContent[];
current: number;
total: number;
size: number;
}
interface CommentContent {
author: number;
browser: string;
content: string;
created_time: string;
dislikes: number;
id: number;
likes: number;
location: string;
operating_system: string;
reply_count: number;
reply_username: string;
reply_id: string;
reply_user: string;
topic_id: string;
user_id: string;
avatar: string;
nickname: string;
level?: number;
images: string[];
}
interface ReplyCommentParams {
user_id: string,
topic_id: string,
content: string,
images: string[],
author: string,
reply_id: number,
reply_user: string,
reply_to: number,
}