28 lines
820 B
TypeScript
28 lines
820 B
TypeScript
import { Module } from '@nestjs/common';
|
|
import { OrganizationsController } from '../controllers/organizations.controller';
|
|
|
|
// Import domain ports
|
|
import { ORGANIZATION_REPOSITORY } from '../../domain/ports/out/organization.repository';
|
|
import { TypeOrmOrganizationRepository } from '../../infrastructure/persistence/typeorm/repositories/typeorm-organization.repository';
|
|
|
|
/**
|
|
* Organizations Module
|
|
*
|
|
* Handles organization management functionality:
|
|
* - Create organizations (admin only)
|
|
* - View organization details
|
|
* - Update organization (admin/manager)
|
|
* - List organizations
|
|
*/
|
|
@Module({
|
|
controllers: [OrganizationsController],
|
|
providers: [
|
|
{
|
|
provide: ORGANIZATION_REPOSITORY,
|
|
useClass: TypeOrmOrganizationRepository,
|
|
},
|
|
],
|
|
exports: [],
|
|
})
|
|
export class OrganizationsModule {}
|