feat: add student archive module with full CRUD APIs

This commit is contained in:
2026-07-06 15:46:57 +08:00
parent 9eec7c34be
commit b6990dd11b
5 changed files with 655 additions and 2 deletions

View File

@@ -32,7 +32,13 @@ import {
Notification,
Department,
UserDepartment,
} from './entities';
StudentProfile,
StudentEnrollment,
ExamScore,
LearningRecord,
ResultArchive,
ArchiveAttachment,
} from './entities';
import { AuthModule } from './auth/auth.module';
import { RbacModule } from './rbac/rbac.module';
import { StudentsModule } from './students/students.module';
@@ -55,8 +61,8 @@ import { SyncModule } from './sync/sync.module';
import { NotificationsModule } from './notifications/notifications.module';
import { DepartmentsModule } from './departments/departments.module';
import { CommonModule } from './common/common.module';
import { ArchiveModule } from './archive/archive.module';
import { CampusScopeMiddleware } from './common/campus-scope.middleware';
@Module({
imports: [
ConfigModule.forRoot({ isGlobal: true }),
@@ -98,6 +104,12 @@ import { CampusScopeMiddleware } from './common/campus-scope.middleware';
Notification,
Department,
UserDepartment,
StudentProfile,
StudentEnrollment,
ExamScore,
LearningRecord,
ResultArchive,
ArchiveAttachment,
];
if (dbType === 'mysql') {
return {
@@ -140,6 +152,7 @@ import { CampusScopeMiddleware } from './common/campus-scope.middleware';
NotificationsModule,
DepartmentsModule,
CommonModule,
ArchiveModule,
],
providers: [
{ provide: APP_GUARD, useClass: ThrottlerGuard },