import IRelationshipsRepository from '../repositories/IRelationshipsRepository' ; import { inject , injectable } from 'tsyringe' ; interface Request { followedId : string ; followerId : string ; } @ injectable ( ) export default class CreatePostService { constructor ( @ inject ( 'RelationshipsRepository' ) private relationshipsRepository ) { } public async execute ( { followedId , followerId } ) { await this . relationshipsRepository . remove ( { followedId , followerId , } ) ; } }