import { Module } from '@nestjs/common';
import { DepartmentsService } from './departments.service.js';
import { DepartmentsController } from './departments.controller.js';
import { AccessTokenGuard } from '../auth/access-token.guard.js';
import { RolesGuard } from '../auth/roles.guard.js';
import { OrganizationAccessService } from '../organization-common/organization-access.service.js';

/**
 * 科室资源模块：聚合科室控制器与服务。
 */
@Module({
  controllers: [DepartmentsController],
  providers: [
    DepartmentsService,
    OrganizationAccessService,
    AccessTokenGuard,
    RolesGuard,
  ],
  exports: [DepartmentsService],
})
export class DepartmentsModule {}
