forked from datawhale/whale-town-end
fix(auth): 修复AuthGatewayModule依赖注入问题
范围: src/gateway/auth/ - 在AuthGatewayModule中导入LoginCoreModule - 解决JwtAuthGuard无法注入LoginCoreService的问题 - 确保依赖注入链的完整性
This commit is contained in:
@@ -29,11 +29,14 @@ import { LoginController } from './login.controller';
|
||||
import { RegisterController } from './register.controller';
|
||||
import { JwtAuthGuard } from './jwt_auth.guard';
|
||||
import { AuthModule } from '../../business/auth/auth.module';
|
||||
import { LoginCoreModule } from '../../core/login_core/login_core.module';
|
||||
|
||||
@Module({
|
||||
imports: [
|
||||
// 导入业务层模块
|
||||
AuthModule,
|
||||
// 导入核心层模块(JwtAuthGuard需要LoginCoreService)
|
||||
LoginCoreModule,
|
||||
],
|
||||
controllers: [
|
||||
// 网关层控制器
|
||||
|
||||
Reference in New Issue
Block a user