mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-11-27 00:54:54 +00:00
feat: onbard junior by qrcode
This commit is contained in:
@ -1,15 +1,20 @@
|
||||
import { Module } from '@nestjs/common';
|
||||
import { forwardRef, Module } from '@nestjs/common';
|
||||
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||
import { AuthModule } from '~/auth/auth.module';
|
||||
import { CustomerModule } from '~/customer/customer.module';
|
||||
import { JuniorController } from './controllers';
|
||||
import { Junior, Theme } from './entities';
|
||||
import { JuniorRepository } from './repositories';
|
||||
import { JuniorService } from './services';
|
||||
import { Junior, JuniorRegistrationToken, Theme } from './entities';
|
||||
import { JuniorRepository, JuniorTokenRepository } from './repositories';
|
||||
import { JuniorService, JuniorTokenService, QrcodeService } from './services';
|
||||
|
||||
@Module({
|
||||
controllers: [JuniorController],
|
||||
providers: [JuniorService, JuniorRepository],
|
||||
imports: [TypeOrmModule.forFeature([Junior, Theme]), AuthModule, CustomerModule],
|
||||
providers: [JuniorService, JuniorRepository, JuniorTokenService, JuniorTokenRepository, QrcodeService],
|
||||
imports: [
|
||||
TypeOrmModule.forFeature([Junior, Theme, JuniorRegistrationToken]),
|
||||
forwardRef(() => AuthModule),
|
||||
CustomerModule,
|
||||
],
|
||||
exports: [JuniorTokenService],
|
||||
})
|
||||
export class JuniorModule {}
|
||||
|
||||
Reference in New Issue
Block a user