2022-04-02 17:57:30 +08:00
|
|
|
import { IUser } from './user';
|
|
|
|
import { IDocument } from './document';
|
2022-05-18 16:02:29 +08:00
|
|
|
/**
|
|
|
|
* 评论
|
|
|
|
*/
|
2022-03-11 13:57:55 +08:00
|
|
|
export interface IComment {
|
|
|
|
id: string;
|
2022-04-02 17:57:30 +08:00
|
|
|
parentCommentId?: IComment['id'];
|
|
|
|
documentId: IDocument['id'];
|
|
|
|
createUserId: IUser['id'];
|
2022-03-11 13:57:55 +08:00
|
|
|
createUser: IUser;
|
2022-04-02 17:57:30 +08:00
|
|
|
replyUserId?: IUser['id'];
|
2022-03-11 13:57:55 +08:00
|
|
|
replyUser?: IUser;
|
|
|
|
html: string;
|
|
|
|
userAgent: string;
|
|
|
|
createdAt: Date;
|
|
|
|
updatedAt: Date;
|
|
|
|
children?: IComment[];
|
|
|
|
}
|