blog: move to a seperate package

This commit is contained in:
undefined committed 2023-02-27 19:48:45 +08:00
1 parent 58d2f59f19
commit 1a4fde4119
18 files changed
+251 -253

No files matched your search

-15
View File
@@ -486,20 +486,6 @@ export interface DiscussionTailReplyDoc {
editor?: number;
}
export interface BlogDoc {
docType: document['TYPE_BLOG'];
docId: ObjectId;
owner: number;
title: string;
content: string;
ip: string;
updateAt: Date;
nReply: number;
views: number;
reply: any[];
react: Record<string, number>;
}
export interface TokenDoc {
_id: string,
tokenType: number,
@@ -677,7 +663,6 @@ declare module './service/db' {
export interface Model {
blacklist: typeof import('./model/blacklist').default,
blog: typeof import('./model/blog'),
builtin: typeof import('./model/builtin'),
contest: typeof import('./model/contest'),
discussion: typeof import('./model/discussion'),