Configure remote database connection and update documentation
This commit is contained in:
13
backend/dist/modules/messages/messages.service.d.ts
vendored
Normal file
13
backend/dist/modules/messages/messages.service.d.ts
vendored
Normal 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>;
|
||||
}
|
Reference in New Issue
Block a user