perf: init model (#4610)

* fix: model config undefined value

* perf: init model
This commit is contained in:
Archer
2025-04-21 14:44:34 +08:00
committed by GitHub
parent f789af51f5
commit 9cd6d2e81f
11 changed files with 80 additions and 60 deletions

View File

@@ -4,6 +4,12 @@ import { LogLevelEnum } from './log/constant';
import { connectionMongo } from '../mongo/index';
import { getMongoLog } from './log/schema';
export enum EventTypeEnum {
outLinkBot = '[Outlink bot]',
feishuBot = '[Feishu bot]',
wxOffiaccount = '[Offiaccount bot]'
}
const logMap = {
[LogLevelEnum.debug]: {
levelLog: chalk.green('[Debug]')