hongshu-web v1.0
This commit is contained in:
30
src/type/comment.ts
Normal file
30
src/type/comment.ts
Normal 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>;
|
||||
}
|
Reference in New Issue
Block a user