core: discussion reaction

This commit is contained in:
undefined committed 2021-06-10 09:54:51 +08:00
1 parent 4b3e2a8e50
commit bc74870a39
6 files changed
+60 -25

No files matched your search

+25 -23
View File
@@ -368,33 +368,35 @@ export interface HistoryDoc {
export type { DiscussionDoc } from './model/discussion';
declare module './model/discussion' {
interface DiscussionDoc {
docType: document['TYPE_DISCUSSION'],
docId: ObjectID,
parentType: number,
parentId: ObjectID | number | string,
title: string,
content: string,
ip: string,
pin: boolean,
highlight: boolean,
updateAt: Date,
nReply: number,
views: number,
history: HistoryDoc[],
sort: number,
lastRCount: number,
docType: document['TYPE_DISCUSSION'];
docId: ObjectID;
parentType: number;
parentId: ObjectID | number | string;
title: string;
content: string;
ip: string;
pin: boolean;
highlight: boolean;
updateAt: Date;
nReply: number;
views: number;
history: HistoryDoc[];
react: Record<string, number>;
sort: number;
lastRCount: number;
}
}
export interface DiscussionReplyDoc extends Document {
docType: document['TYPE_DISCUSSION_REPLY'],
docId: ObjectID,
parentType: document['TYPE_DISCUSSION'],
parentId: ObjectID,
ip: string,
content: string,
reply: DiscussionTailReplyDoc[],
history: HistoryDoc[],
docType: document['TYPE_DISCUSSION_REPLY'];
docId: ObjectID;
parentType: document['TYPE_DISCUSSION'];
parentId: ObjectID;
ip: string;
content: string;
reply: DiscussionTailReplyDoc[];
history: HistoryDoc[];
react: Record<string, number>;
}
export interface DiscussionTailReplyDoc {