Skip to content

Commit

Permalink
feat/#240 PromiseService 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
youz2me committed Jul 18, 2024
1 parent 8982989 commit 7b1c1fd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class PagePromiseViewController: BaseViewController {

readyStatusViewController = ReadyStatusViewController(
readyStatusViewModel: ReadyStatusViewModel(
readyStatusService: MockReadyStatusService(),
readyStatusService: PromiseService(),
promiseID: promiseViewModel.promiseID.value
)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,20 @@ protocol ReadyStatusServiceType {
func getParticipantList(with promiseID: Int) -> ResponseBodyDTO<PromiseParticipantListModel>?
}

extension PromiseService: ReadyStatusServiceType {
func getMyPromiseStatus(with promiseID: Int) -> ResponseBodyDTO<MyReadyStatusModel>? {
<#code#>
}

func patchMyReadyStatus(with myInfo: MyPromiseReadyInfoModel) {
<#code#>
}

func getParticipantList(with promiseID: Int) -> ResponseBodyDTO<PromiseParticipantListModel>? {
<#code#>
}
}

final class MockReadyStatusService: ReadyStatusServiceType {
func patchMyReadyStatus(with myInfo: MyPromiseReadyInfoModel) {

Expand Down

0 comments on commit 7b1c1fd

Please sign in to comment.