Skip to content

Commit

Permalink
feat : SearchMoviesUseCase 생성 #1
Browse files Browse the repository at this point in the history
- 영화목록을 찾는 UseCase 생성
  • Loading branch information
wongbingg committed Feb 23, 2023
1 parent a764f12 commit dde52dd
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions BoxOffice2/Domain/UseCases/SearchMoviesUseCase.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//
// SearchMoviesUseCase.swift
// BoxOffice2
//
// Created by 이원빈 on 2023/02/23.
//

protocol SearchMoviesUseCase {
func execute() -> [MovieCellData]
}

struct DefaultSearchMoviesUseCase: SearchMoviesUseCase {
let movieRepository: MovieRepository

func execute() -> [MovieCellData] {
return movieRepository.fetchMovies()
}
}

0 comments on commit dde52dd

Please sign in to comment.