feat: 完成配置中心重构和命名规范优化
- 重构config层为配置中心架构,支持动态配置管理 - 统一core层命名规范(event-bus→event, circuit-breaker→breaker, domain-sdk→sdk) - 修复数据库连接配置路径问题 - 实现配置中心完整功能:系统配置、动态配置、配置验证、统计 - 优化目录结构,为微服务架构做准备 - 修复TypeScript编译错误和依赖注入问题
This commit is contained in:
24
wwjcloud/src/core/health/healthModule.ts
Normal file
24
wwjcloud/src/core/health/healthModule.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
import { Module } from '@nestjs/common';
|
||||
import { HealthController } from './healthController';
|
||||
import { HealthzController } from './healthzController';
|
||||
import { HealthService } from './healthService';
|
||||
import { QueueModule } from '@wwjCore/queue/queueModule';
|
||||
import { EventModule } from '@wwjCore/event/eventModule';
|
||||
|
||||
/**
|
||||
* 健康检查模块
|
||||
* 提供详细健康检查和 Kubernetes 探针端点
|
||||
*/
|
||||
@Module({
|
||||
imports: [
|
||||
QueueModule,
|
||||
EventModule,
|
||||
],
|
||||
controllers: [
|
||||
HealthController,
|
||||
HealthzController,
|
||||
],
|
||||
providers: [HealthService],
|
||||
exports: [HealthService],
|
||||
})
|
||||
export class HealthModule {}
|
||||
Reference in New Issue
Block a user