Skip to content

Commit

Permalink
feat: 강의평가 상세 API 호출(#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
sozohoy committed Feb 6, 2024
1 parent 445142f commit 0571ac3
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

//4591
final class LectureEvaluationDetailViewModel: ObservableObject {
var fetchDetailLectureUseCase: FetchDetailLectureUseCase = DIContainer.shared.resolve(type: FetchDetailLectureUseCase.self)
@Published var detailLecture: DetailLecture = DetailLecture.mockdata

@MainActor
init() {
Task {
do {
self.detailLecture = try await fetchDetailLectureUseCase.excute(id: 4591)
} catch {
print("@Log LectureEvaluationDetialVM Fetch - \(error.localizedDescription)")
}
}
}
}

0 comments on commit 0571ac3

Please sign in to comment.