feat(training): 新增培训考证报名与静态资源访问

This commit is contained in:
lik
2026-11-03 20:14:57 +08:00
parent df0752204d
commit c4330e9c77
8 changed files with 428 additions and 10 deletions
+3
View File
@@ -6,6 +6,7 @@ import { HealthProfileSchema } from "./schema/health_profile.js"
import { OrganizationSchema } from "./schema/organization.js"
import { EmployeeSchema } from "./schema/employee.js"
import { EmployeeReviewSchema } from "./schema/employee_review.js"
import { TrainingApplicationSchema } from "./schema/training_application.js"
import config from '../config.js';
import logger from '../utils/logger.js';
@@ -18,6 +19,7 @@ class MongoDBSchema {
this.Employee = null;
this.HealthProfile = null;
this.EmployeeReview = null;
this.TrainingApplication = null;
}
init() {
@@ -48,6 +50,7 @@ class MongoDBSchema {
this.Organization = this.dbConnection.model('organization', OrganizationSchema)
this.Employee = this.dbConnection.model('employee', EmployeeSchema)
this.EmployeeReview = this.dbConnection.model('employee_review', EmployeeReviewSchema)
this.TrainingApplication = this.dbConnection.model('training_application', TrainingApplicationSchema)
}
}