feat(health-profiles): 添加健康档案模块,支持健康史记录、家庭健康管理和档案概览功能
This commit is contained in:
52
src/health-profiles/health-profiles.module.ts
Normal file
52
src/health-profiles/health-profiles.module.ts
Normal file
@@ -0,0 +1,52 @@
|
||||
import { Module, forwardRef } from '@nestjs/common';
|
||||
import { SequelizeModule } from '@nestjs/sequelize';
|
||||
|
||||
// Models
|
||||
import { HealthHistory } from './models/health-history.model';
|
||||
import { HealthHistoryItem } from './models/health-history-item.model';
|
||||
import { FamilyGroup } from './models/family-group.model';
|
||||
import { FamilyMember } from './models/family-member.model';
|
||||
|
||||
// User models (for relations)
|
||||
import { User } from '../users/models/user.model';
|
||||
import { UserProfile } from '../users/models/user-profile.model';
|
||||
|
||||
// Controller
|
||||
import { HealthProfilesController } from './health-profiles.controller';
|
||||
|
||||
// Services
|
||||
import { HealthProfilesService } from './health-profiles.service';
|
||||
import { HealthHistoryService } from './services/health-history.service';
|
||||
import { FamilyHealthService } from './services/family-health.service';
|
||||
|
||||
// Modules
|
||||
import { UsersModule } from '../users/users.module';
|
||||
|
||||
@Module({
|
||||
imports: [
|
||||
SequelizeModule.forFeature([
|
||||
// Health History
|
||||
HealthHistory,
|
||||
HealthHistoryItem,
|
||||
// Family Health
|
||||
FamilyGroup,
|
||||
FamilyMember,
|
||||
// User models for relations
|
||||
User,
|
||||
UserProfile,
|
||||
]),
|
||||
forwardRef(() => UsersModule),
|
||||
],
|
||||
controllers: [HealthProfilesController],
|
||||
providers: [
|
||||
HealthProfilesService,
|
||||
HealthHistoryService,
|
||||
FamilyHealthService,
|
||||
],
|
||||
exports: [
|
||||
HealthProfilesService,
|
||||
HealthHistoryService,
|
||||
FamilyHealthService,
|
||||
],
|
||||
})
|
||||
export class HealthProfilesModule {}
|
||||
Reference in New Issue
Block a user