import { injectable } from "tsyringe"; import FindRepository from "../repositories/FindRepository"; @injectable() export default class FindUseCase { constructor(private readonly findRepository: FindRepository) {} getKeyword(): Promise { return this.findRepository.getKeyword(); } setKeyword(keyword: string): Promise { return this.findRepository.setKeyword(keyword); } }