mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-26 07:54:53 +00:00
feat: implement Booking module with BookableSpace entity, controller, service, and DTOs for managing bookable spaces
This commit is contained in:
16
src/booking/booking.module.ts
Normal file
16
src/booking/booking.module.ts
Normal file
@ -0,0 +1,16 @@
|
||||
import { Global, Module } from '@nestjs/common';
|
||||
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||
import { BookableSpaceController } from './controllers';
|
||||
import { BookableSpaceService } from './services';
|
||||
import { BookableSpaceEntityRepository } from '@app/common/modules/booking/repositories';
|
||||
import { BookableSpaceEntity } from '@app/common/modules/booking/entities';
|
||||
import { SpaceEntity } from '@app/common/modules/space/entities/space.entity';
|
||||
|
||||
@Global()
|
||||
@Module({
|
||||
imports: [TypeOrmModule.forFeature([BookableSpaceEntity, SpaceEntity])],
|
||||
controllers: [BookableSpaceController],
|
||||
providers: [BookableSpaceService, BookableSpaceEntityRepository],
|
||||
exports: [BookableSpaceService],
|
||||
})
|
||||
export class BookingModule {}
|
||||
Reference in New Issue
Block a user