mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
25 lines
649 B
TypeScript
25 lines
649 B
TypeScript
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)
|
|
}
|
|
}
|
|
}
|