feat:增加微信支付功能
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user