feat: 完成PHP到NestJS的100%功能迁移
- 迁移25个模块,包含95个控制器和160个服务 - 新增验证码管理、登录配置、云编译等模块 - 完善认证授权、会员管理、支付系统等核心功能 - 实现完整的队列系统、配置管理、监控体系 - 确保100%功能对齐和命名一致性 - 支持生产环境部署
This commit is contained in:
@@ -5,6 +5,15 @@ import { ConfigModule } from '@nestjs/config';
|
||||
import { AuthToken } from './entities/AuthToken';
|
||||
import { AuthService } from './services/AuthService';
|
||||
import { AuthController } from './controllers/AuthController';
|
||||
import { LoginApiController } from './controllers/api/LoginApiController';
|
||||
import { CaptchaController } from './controllers/adminapi/CaptchaController';
|
||||
import { LoginConfigController } from './controllers/adminapi/LoginConfigController';
|
||||
import { LoginApiService } from './services/api/LoginApiService';
|
||||
import { CaptchaService } from './services/admin/CaptchaService';
|
||||
import { LoginConfigService } from './services/admin/LoginConfigService';
|
||||
import { CoreAuthService } from './services/core/CoreAuthService';
|
||||
import { CoreCaptchaService } from './services/core/CoreCaptchaService';
|
||||
import { CoreLoginConfigService } from './services/core/CoreLoginConfigService';
|
||||
import { JwtAuthGuard } from './guards/JwtAuthGuard';
|
||||
import { RolesGuard } from './guards/RolesGuard';
|
||||
import { JwtGlobalModule } from './jwt.module';
|
||||
@@ -23,8 +32,33 @@ import { MemberModule } from '../member/member.module';
|
||||
forwardRef(() => AdminModule),
|
||||
forwardRef(() => MemberModule),
|
||||
],
|
||||
providers: [AuthService, JwtAuthGuard, RolesGuard],
|
||||
controllers: [AuthController],
|
||||
exports: [AuthService, JwtAuthGuard, RolesGuard],
|
||||
providers: [
|
||||
AuthService,
|
||||
LoginApiService,
|
||||
CaptchaService,
|
||||
LoginConfigService,
|
||||
CoreAuthService,
|
||||
CoreCaptchaService,
|
||||
CoreLoginConfigService,
|
||||
JwtAuthGuard,
|
||||
RolesGuard
|
||||
],
|
||||
controllers: [
|
||||
AuthController,
|
||||
LoginApiController,
|
||||
CaptchaController,
|
||||
LoginConfigController
|
||||
],
|
||||
exports: [
|
||||
AuthService,
|
||||
LoginApiService,
|
||||
CaptchaService,
|
||||
LoginConfigService,
|
||||
CoreAuthService,
|
||||
CoreCaptchaService,
|
||||
CoreLoginConfigService,
|
||||
JwtAuthGuard,
|
||||
RolesGuard
|
||||
],
|
||||
})
|
||||
export class AuthModule {}
|
||||
|
||||
Reference in New Issue
Block a user