Skip to content

Commit

Permalink
✨ :: domain에서도 쓸 수 있게 usecase 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
Cjsghkd committed Sep 18, 2023
1 parent 1c028f4 commit 0b8a9a9
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package com.msg.domain.usecase.auth

import com.msg.domain.repository.AuthRepository
import javax.inject.Inject

class SaveRoleUseCase @Inject constructor(
private val authRepository: AuthRepository
) {
suspend operator fun invoke(roles: String) = kotlin.runCatching { authRepository.saveRole(roles) }
}

0 comments on commit 0b8a9a9

Please sign in to comment.