blob: cc111f297a5787d0733c8b923136e18c1fe11e03 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import { injectable } from "tsyringe";
import FindRepository from "../repositories/FindRepository";
@injectable()
export default class FindUseCase {
constructor(private readonly findRepository: FindRepository) {}
getKeyword(): Promise<string> {
return this.findRepository.getKeyword();
}
setKeyword(keyword: string): Promise<void> {
return this.findRepository.setKeyword(keyword);
}
}
|