feat: 摘要拆分

This commit is contained in:
archer
2023-03-26 22:09:59 +08:00
parent 888642f154
commit 3e4487ad9a
20 changed files with 397 additions and 83 deletions

View File

@@ -1,5 +1,7 @@
import mongoose from 'mongoose';
import { generateQA } from './events/generateQA';
import { generateAbstract } from './events/generateAbstract';
/**
* 连接 MongoDB 数据库
*/
@@ -24,8 +26,8 @@ export async function connectToDatabase(): Promise<void> {
global.mongodb = null;
}
// 递归 QA 生成
generateQA();
generateAbstract();
}
export * from './models/authCode';