From f228e2f5ac1ab4f6284a845aca6df2201a9f2f95 Mon Sep 17 00:00:00 2001 From: hyeumm <20221159@sungshin.ac.kr> Date: Fri, 6 Dec 2024 22:45:48 +0900 Subject: [PATCH] feature #13: MyRepository --- .../java/org/sopt/and/domain/repository/MyRepository.kt | 7 +++++++ app/src/main/java/org/sopt/and/domain/usecase/MyUseCase.kt | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 app/src/main/java/org/sopt/and/domain/repository/MyRepository.kt diff --git a/app/src/main/java/org/sopt/and/domain/repository/MyRepository.kt b/app/src/main/java/org/sopt/and/domain/repository/MyRepository.kt new file mode 100644 index 0000000..708122c --- /dev/null +++ b/app/src/main/java/org/sopt/and/domain/repository/MyRepository.kt @@ -0,0 +1,7 @@ +package org.sopt.and.domain.repository + +import org.sopt.and.domain.entity.response.ResponseHobbyEntity + +interface MyRepository { + suspend fun getHobby(): Result +} diff --git a/app/src/main/java/org/sopt/and/domain/usecase/MyUseCase.kt b/app/src/main/java/org/sopt/and/domain/usecase/MyUseCase.kt index 4f0246a..224b23f 100644 --- a/app/src/main/java/org/sopt/and/domain/usecase/MyUseCase.kt +++ b/app/src/main/java/org/sopt/and/domain/usecase/MyUseCase.kt @@ -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 = myRepository.getHobby()