lab4: вложения (proxy upload, download, уборщик), attachment_ids в сообщениях

This commit is contained in:
2026-10-22 22:28:54 +03:00
parent ec4e9fb608
commit 6fcc623447
23 changed files with 959 additions and 106 deletions
+26
View File
@@ -0,0 +1,26 @@
import { Module } from '@nestjs/common';
import { DatabaseModule } from '../database/database.module.js';
import { ChatsModule } from '../chats/chats.module.js';
import { UsersModule } from '../users/users.module.js';
import { RedisModule } from '../redis/redis.module.js';
import { MetricsModule } from '../metrics/metrics.module.js';
import { StorageModule } from '../storage/storage.module.js';
import { AttachmentSweeper } from './attachment-sweeper.service.js';
import { AttachmentsController } from './attachments.controller.js';
import { AttachmentsRepository } from './attachments.repository.js';
import { AttachmentsService } from './attachments.service.js';
@Module({
imports: [
DatabaseModule,
ChatsModule,
UsersModule,
RedisModule,
MetricsModule,
StorageModule,
],
controllers: [AttachmentsController],
providers: [AttachmentsRepository, AttachmentsService, AttachmentSweeper],
exports: [AttachmentsRepository],
})
export class AttachmentsModule {}