Files
hongshu-web/src/type/comment.ts
2024-07-03 16:56:33 +08:00

31 lines
547 B
TypeScript

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>;
}