forked from wangziqi/gongxue-base
feat(dashboard): add classroom/attendance/income stats to dashboard API
- Add classroomCount, classroomOccupancyRate from Classroom + ClassSchedule - Add todayAttendanceRate, attendanceTrend from AttendanceRecord - Add monthlyIncome, incomeTrend from Bill - Register Classroom, ClassSchedule, AttendanceRecord in dashboard module
This commit is contained in:
@@ -5,11 +5,14 @@ import { Student } from '../entities/student.entity';
|
||||
import { Occupancy } from '../entities/occupancy.entity';
|
||||
import { Bill } from '../entities/bill.entity';
|
||||
import { RoomExpense } from '../entities/room-expense.entity';
|
||||
import { Classroom } from '../entities/classroom.entity';
|
||||
import { ClassSchedule } from '../entities/class-schedule.entity';
|
||||
import { AttendanceRecord } from '../entities/attendance-record.entity';
|
||||
import { DashboardService } from './dashboard.service';
|
||||
import { DashboardController } from './dashboard.controller';
|
||||
|
||||
@Module({
|
||||
imports: [TypeOrmModule.forFeature([Room, Student, Occupancy, Bill, RoomExpense])],
|
||||
imports: [TypeOrmModule.forFeature([Room, Student, Occupancy, Bill, RoomExpense, Classroom, ClassSchedule, AttendanceRecord])],
|
||||
controllers: [DashboardController],
|
||||
providers: [DashboardService],
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user