Configure remote database connection and update documentation

This commit is contained in:
Bivekich
2025-08-06 02:24:01 +03:00
parent 5bd7d79642
commit e1b79f017a
67 changed files with 1513 additions and 15 deletions

View File

@ -0,0 +1,13 @@
import { Repository } from 'typeorm';
import { Message } from './entities/message.entity';
import { ConversationsService } from '../conversations/conversations.service';
export declare class MessagesService {
private messagesRepository;
private conversationsService;
constructor(messagesRepository: Repository<Message>, conversationsService: ConversationsService);
create(conversationId: string, senderId: string, content: string): Promise<Message>;
findAllInConversation(conversationId: string, userId: string): Promise<Message[]>;
update(messageId: string, userId: string, content: string): Promise<Message>;
markAsRead(messageId: string, userId: string): Promise<Message>;
delete(messageId: string, userId: string): Promise<boolean>;
}