fix(classes): 修复依赖注入与 ESM 导入路径

- classes.module.ts: 移除 useFactory,改用直接 provider 注册

- classes.service.ts: 添加 @Inject 装饰器显式注入 Repository

- health.module.ts: 修复 import 添加 .js 后缀(ESM 模式)

- package.json: 补充 ioredis/kafkajs/typeform 等运行时依赖
This commit is contained in:
SpecialX
2026-07-08 15:11:12 +08:00
parent 2df2237d56
commit a4ec5b72c5
5 changed files with 222 additions and 32 deletions

View File

@@ -1,5 +1,5 @@
import { Module } from '@nestjs/common';
import { HealthController } from './health.controller';
import { Module } from "@nestjs/common";
import { HealthController } from "./health.controller.js";
/**
* 健康检查模块。