forked from wangziqi/gongxue-base
- Add CommonModule to provide/export CampusScope across business modules - Replace DepartmentsModule imports with CommonModule in 11 modules - Add missing Class/Tenant repository imports to StudentsModule and SchedulesModule - Fix service specs with CampusScope, ClassRepository, StudentRepository mocks - Move better-sqlite3 to optionalDependencies for production Docker builds - Rewrite Dockerfiles for monorepo root build context - Update docker-compose.yml service build contexts
37 lines
1.2 KiB
TypeScript
37 lines
1.2 KiB
TypeScript
import { Module } from '@nestjs/common';
|
|
import { NotificationsModule } from '../notifications/notifications.module';
|
|
import { CommonModule } from '../common/common.module';
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
import { Bill } from '../entities/bill.entity';
|
|
import { BillItem } from '../entities/bill-item.entity';
|
|
import { RoomExpense } from '../entities/room-expense.entity';
|
|
import { PersonalExpense } from '../entities/personal-expense.entity';
|
|
import { Occupancy } from '../entities/occupancy.entity';
|
|
import { Room } from '../entities/room.entity';
|
|
import { Deposit } from '../entities/deposit.entity';
|
|
import { Student } from '../entities/student.entity';
|
|
import { BillsService } from './bills.service';
|
|
import { BillsExportService } from './bills-export.service';
|
|
import { BillsController } from './bills.controller';
|
|
|
|
@Module({
|
|
imports: [
|
|
TypeOrmModule.forFeature([
|
|
Bill,
|
|
BillItem,
|
|
RoomExpense,
|
|
PersonalExpense,
|
|
Occupancy,
|
|
Room,
|
|
Deposit,
|
|
Student,
|
|
]),
|
|
NotificationsModule,
|
|
CommonModule,
|
|
],
|
|
controllers: [BillsController],
|
|
providers: [BillsService, BillsExportService],
|
|
exports: [BillsService],
|
|
})
|
|
export class BillsModule {}
|