Skip to content

Commit

Permalink
✨ :: [#86] BookRepository 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
shwaaaa committed Jun 17, 2024
1 parent 9be713b commit fb935f7
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ public struct BookDetialInfoEntity: Equatable {
public init(
title: String,
plot: String

) {
self.title = title
self.plot = plot
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public struct SettingGoalUseCaseImpl: SettingGoalUseCase {
self.goalRepository = goalRepository
}

public func execute() async throws {
try await goalRepository.settingGoal()
public func execute(req: SettingGoalRequestDTO) async throws {
try await goalRepository.settingGoal(req: req)
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import Foundation

public protocol BookRepository {
func writeBook(req: WriteBookRequestDTO) async throws
func fetchBookList() async throws -> [BookInfoEntity]
func modifyBook(req: BookDetialInfoEntity) async throws
func deleteBook() async throws
func fetchBookDetail() async throws -> BookDetialInfoEntity
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Foundation

public protocol SettingGoalUseCase {
func execute() async throws
func execute(req: SettingGoalRequestDTO) async throws
}

0 comments on commit fb935f7

Please sign in to comment.