Skip to content

Commit

Permalink
[FEATURE] #93 : SurveyForm 업데이트 유스케이스 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
jeongjaino committed Jan 9, 2024
1 parent bca1af2 commit 21a3633
Showing 1 changed file with 13 additions and 0 deletions.
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)
}
}

0 comments on commit 21a3633

Please sign in to comment.