实现分发器模块

- 添加分发器类型定义 (distributor.ts)
- 实现分发器基类 (base.distributor.ts)
- 实现邮件分发器 (email.distributor.ts)
- 实现钉钉分发器 (dingtalk.distributor.ts)
- 实现企业微信分发器 (wechat.distributor.ts)
- 实现 Slack 分发器 (slack.distributor.ts)
- 创建分发器工厂 (distributor.factory.ts)
- 实现分发服务 (distributor.service.ts)
- 安装 nodemailer 依赖

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hughhuangandClaude Opus 4.5 committed 2026-02-04 21:32:54 +08:00
1 parent 75c765af93
commit 5746676819
11 files changed
+562

No files matched your search

+21
View File
@@ -15,6 +15,7 @@
"dotenv": "^17.2.3",
"fastify": "^5.7.4",
"node-cron": "^4.2.1",
"nodemailer": "^8.0.0",
"openai": "^6.17.0",
"playwright": "^1.58.1",
"prisma": "^5.22.0",
@@ -24,6 +25,7 @@
"devDependencies": {
"@types/node": "^25.2.0",
"@types/node-cron": "^3.0.11",
"@types/nodemailer": "^7.0.9",
"nodemon": "^3.1.11",
"tsx": "^4.21.0",
"typescript": "^5.9.3"
@@ -811,6 +813,16 @@
"dev": true,
"license": "MIT"
},
"node_modules/@types/nodemailer": {
"version": "7.0.9",
"resolved": "https://registry.npmjs.org/@types/nodemailer/-/nodemailer-7.0.9.tgz",
"integrity": "sha512-vI8oF1M+8JvQhsId0Pc38BdUP2evenIIys7c7p+9OZXSPOH5c1dyINP1jT8xQ2xPuBUXmIC87s+91IZMDjH8Ow==",
"dev": true,
"license": "MIT",
"dependencies": {
"@types/node": "*"
}
},
"node_modules/@types/triple-beam": {
"version": "1.3.5",
"resolved": "https://registry.npmjs.org/@types/triple-beam/-/triple-beam-1.3.5.tgz",
@@ -1624,6 +1636,15 @@
"node": ">=6.0.0"
}
},
"node_modules/nodemailer": {
"version": "8.0.0",
"resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-8.0.0.tgz",
"integrity": "sha512-xvVJf/f0bzmNpnRIbhCp/IKxaHgJ6QynvUbLXzzMRPG3LDQr5oXkYuw4uDFyFYs8cge8agwwrJAXZsd4hhMquw==",
"license": "MIT-0",
"engines": {
"node": ">=6.0.0"
}
},
"node_modules/nodemon": {
"version": "3.1.11",
"resolved": "https://registry.npmjs.org/nodemon/-/nodemon-3.1.11.tgz",