add endpoint

This commit is contained in:
Peter Maquiran
2024-08-02 16:20:26 +01:00
parent 68a7eb8bad
commit 643bfe8310
9 changed files with 168 additions and 198 deletions
@@ -0,0 +1,24 @@
import { Injectable } from '@angular/core';
import { MessageLocalDataSourceService } from '../../../data/data-source/message/message-local-data-source.service';
import { MessageOutPutDataDTO } from '../../../data/dto/message/messageOutputDTO';
@Injectable({
providedIn: 'root'
})
export class SocketMessageDeleteUseCaseService {
constructor(
private messageLocalDataSourceService: MessageLocalDataSourceService
) { }
async execute(input: MessageOutPutDataDTO) {
const result = await this.messageLocalDataSourceService.deleteByMessageId(input.id)
if(result.isOk()) {
} else {
console.log(result.error)
}
}
}