forked from wangziqi/gongxue-base
feat: add DepartmentsModule with DTO, Service, and stub controller
This commit is contained in:
@@ -30,6 +30,8 @@ import {
|
||||
SyncLog,
|
||||
SyncState,
|
||||
Notification,
|
||||
Department,
|
||||
UserDepartment,
|
||||
} from './entities';
|
||||
import { AuthModule } from './auth/auth.module';
|
||||
import { RbacModule } from './rbac/rbac.module';
|
||||
@@ -51,6 +53,7 @@ import { SchedulesModule } from './schedules/schedules.module';
|
||||
import { ClassroomRentalsModule } from './classroom-rentals/classroom-rentals.module';
|
||||
import { SyncModule } from './sync/sync.module';
|
||||
import { NotificationsModule } from './notifications/notifications.module';
|
||||
import { DepartmentsModule } from './departments/departments.module';
|
||||
|
||||
@Module({
|
||||
imports: [
|
||||
@@ -90,9 +93,9 @@ import { NotificationsModule } from './notifications/notifications.module';
|
||||
ClassSchedule,
|
||||
AttendanceRecord,
|
||||
DingAttendanceRaw,
|
||||
SyncLog,
|
||||
SyncState,
|
||||
Notification,
|
||||
Department,
|
||||
UserDepartment,
|
||||
];
|
||||
if (dbType === 'mysql') {
|
||||
return {
|
||||
@@ -133,6 +136,7 @@ import { NotificationsModule } from './notifications/notifications.module';
|
||||
ClassroomRentalsModule,
|
||||
SyncModule,
|
||||
NotificationsModule,
|
||||
DepartmentsModule,
|
||||
],
|
||||
providers: [
|
||||
{ provide: APP_GUARD, useClass: ThrottlerGuard },
|
||||
|
||||
Reference in New Issue
Block a user