feat:增加微信支付功能

This commit is contained in:
lik
2026-11-05 16:31:51 +08:00
parent 770f7ebb1d
commit 23b9de16a6
12 changed files with 2126 additions and 13 deletions
+6
View File
@@ -8,6 +8,8 @@ import { HospitalSchema } from "./schema/hospital.js"
import { EmployeeSchema } from "./schema/employee.js"
import { EmployeeReviewSchema } from "./schema/employee_review.js"
import { TrainingApplicationSchema } from "./schema/training_application.js"
import { PaymentRecordSchema } from "./schema/payment_record.js"
import { RefundRecordSchema } from "./schema/refund_record.js"
import config from '../config.js';
import logger from '../utils/logger.js';
@@ -22,6 +24,8 @@ class MongoDBSchema {
this.HealthProfile = null;
this.EmployeeReview = null;
this.TrainingApplication = null;
this.PaymentRecord = null;
this.RefundRecord = null;
}
init() {
@@ -54,6 +58,8 @@ class MongoDBSchema {
this.Employee = this.dbConnection.model('employee', EmployeeSchema)
this.EmployeeReview = this.dbConnection.model('employee_review', EmployeeReviewSchema)
this.TrainingApplication = this.dbConnection.model('training_application', TrainingApplicationSchema)
this.PaymentRecord = this.dbConnection.model('payment_record', PaymentRecordSchema)
this.RefundRecord = this.dbConnection.model('refund_record', RefundRecordSchema)
}
}