Skip to content

Commit

Permalink
feat: 강의평가 상세 Fetch 유즈케이스(#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
sozohoy committed Feb 6, 2024
1 parent c1639d2 commit d316b1e
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,20 @@
//

import Foundation

protocol FetchDetailLectureUseCase {
func excute(
id: Int
) async throws -> DetailLecture
}

final class DefaultFetchDetailLectureUseCase: FetchDetailLectureUseCase {

@Inject var repository: LectureRepository

func excute(
id: Int
) async throws -> DetailLecture {
try await repository.fetchDetail(id: id)
}
}

0 comments on commit d316b1e

Please sign in to comment.