Skip to content

Commit

Permalink
feature #13: MyRepository
Browse files Browse the repository at this point in the history
  • Loading branch information
hyeeum committed Dec 6, 2024
1 parent 7cb7dc7 commit f228e2f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package org.sopt.and.domain.repository

import org.sopt.and.domain.entity.response.ResponseHobbyEntity

interface MyRepository {
suspend fun getHobby(): Result<ResponseHobbyEntity>
}
4 changes: 2 additions & 2 deletions app/src/main/java/org/sopt/and/domain/usecase/MyUseCase.kt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package org.sopt.and.domain.usecase

import org.sopt.and.domain.entity.response.ResponseHobbyEntity
import org.sopt.and.domain.repository.WavveRepository
import org.sopt.and.domain.repository.MyRepository
import javax.inject.Inject

class MyUseCase @Inject constructor(
private val myRepository: WavveRepository
private val myRepository: MyRepository
) {
suspend operator fun invoke(): Result<ResponseHobbyEntity> =
myRepository.getHobby()
Expand Down

0 comments on commit f228e2f

Please sign in to comment.