forked from wangziqi/gongxue-base
33 lines
1.1 KiB
TypeScript
33 lines
1.1 KiB
TypeScript
import { Module } from '@nestjs/common';
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
import { Room } from '../entities/room.entity';
|
|
import { Occupancy } from '../entities/occupancy.entity';
|
|
import { RoomExpense } from '../entities/room-expense.entity';
|
|
import { Bed } from '../entities/bed.entity';
|
|
import { Locker } from '../entities/locker.entity';
|
|
import { RoomInspection } from '../entities/room-inspection.entity';
|
|
import { RoomInspectionDetail } from '../entities/room-inspection-detail.entity';
|
|
import { RoomsService } from './rooms.service';
|
|
import { RoomsController } from './rooms.controller';
|
|
import { OperationLogsModule } from '../operation-logs/operation-logs.module';
|
|
import { RoomInspectionsService } from './room-inspections.service';
|
|
|
|
@Module({
|
|
imports: [
|
|
TypeOrmModule.forFeature([
|
|
Room,
|
|
Occupancy,
|
|
RoomExpense,
|
|
Bed,
|
|
Locker,
|
|
RoomInspection,
|
|
RoomInspectionDetail,
|
|
]),
|
|
OperationLogsModule,
|
|
],
|
|
controllers: [RoomsController],
|
|
providers: [RoomsService, RoomInspectionsService],
|
|
exports: [RoomsService, RoomInspectionsService],
|
|
})
|
|
export class RoomsModule {}
|