hongshu-web v1.0

This commit is contained in:
mayongjian
2024-07-03 16:56:33 +08:00
parent 4fbf472ba0
commit 05f8f39dde
93 changed files with 29139 additions and 71 deletions

30
src/type/comment.ts Normal file
View File

@@ -0,0 +1,30 @@
export interface CommentDTO {
nid: string;
noteUid: string;
pid: string;
replyId: string;
replyUid: string;
replyUsername: string;
level: number;
content: string;
}
export interface Comment {
id: string;
pid: string;
nid: string;
noteCover: string;
uid: string;
username: string;
avatar: string;
replyId: string;
replyUid: string;
replyUsername: string;
content: string;
replyContent: string;
time: number;
likeCount: number;
isLike: boolean;
twoCommentCount: number;
children: Array<Comment>;
}