mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 09:46:28 +08:00
core: discussion reaction
This commit is contained in:
1 parent
4b3e2a8e50
commit
bc74870a39
6 files changed
+60
-25
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user