From 54eca571528446cfa49f47564d00cb21aab1d904 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=93=D0=BE=D0=BB=D0=B8=D0=BA=D0=BE=D0=B2=20Maximillian?= =?UTF-8?q?=20=D0=90=D0=BD=D1=82=D0=BE=D0=BD?= Date: Mon, 19 Oct 2026 16:21:55 +0300 Subject: [PATCH] feat(postgres):lab4 expose Attachments() via Storage --- backend/internal/storage/postgres/storage.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/backend/internal/storage/postgres/storage.go b/backend/internal/storage/postgres/storage.go index 110fef1..0712109 100644 --- a/backend/internal/storage/postgres/storage.go +++ b/backend/internal/storage/postgres/storage.go @@ -12,7 +12,8 @@ func New(pool *pgxpool.Pool) *Storage { func (s *Storage) Pool() *pgxpool.Pool { return s.pool } -func (s *Storage) Users() *UserRepo { return &UserRepo{pool: s.pool} } -func (s *Storage) Chats() *ChatRepo { return &ChatRepo{pool: s.pool} } -func (s *Storage) Messages() *MessageRepo { return &MessageRepo{pool: s.pool} } -func (s *Storage) Sessions() *SessionRepo { return &SessionRepo{pool: s.pool} } +func (s *Storage) Users() *UserRepo { return &UserRepo{pool: s.pool} } +func (s *Storage) Chats() *ChatRepo { return &ChatRepo{pool: s.pool} } +func (s *Storage) Messages() *MessageRepo { return &MessageRepo{pool: s.pool} } +func (s *Storage) Sessions() *SessionRepo { return &SessionRepo{pool: s.pool} } +func (s *Storage) Attachments() *AttachmentRepo { return &AttachmentRepo{pool: s.pool} }