-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] #93 : SurveyForm 업데이트 유스케이스 구현
- Loading branch information
1 parent
bca1af2
commit 21a3633
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
core/domain/src/main/java/com/wap/wapp/core/domain/usecase/survey/UpdateSurveyFormUseCase.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.wap.wapp.core.domain.usecase.survey | ||
|
||
import com.wap.wapp.core.data.repository.survey.SurveyFormRepository | ||
import com.wap.wapp.core.model.survey.SurveyForm | ||
import javax.inject.Inject | ||
|
||
class UpdateSurveyFormUseCase @Inject constructor( | ||
private val surveyFormRepository: SurveyFormRepository | ||
){ | ||
suspend operator fun invoke(surveyForm: SurveyForm): Result<Unit> = runCatching { | ||
surveyFormRepository.updateSurveyForm(surveyForm) | ||
} | ||
} |