From ce45e9e681b7c9cb0dce314f4f9bc6e765fd0bc8 Mon Sep 17 00:00:00 2001 From: hyeumm <20221159@sungshin.ac.kr> Date: Fri, 6 Dec 2024 22:47:59 +0900 Subject: [PATCH] chore #13: ServiceModule --- .../main/java/org/sopt/and/data/di/ServiceModule.kt | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/org/sopt/and/data/di/ServiceModule.kt b/app/src/main/java/org/sopt/and/data/di/ServiceModule.kt index 3933554..2a72638 100644 --- a/app/src/main/java/org/sopt/and/data/di/ServiceModule.kt +++ b/app/src/main/java/org/sopt/and/data/di/ServiceModule.kt @@ -4,7 +4,8 @@ import dagger.Module import dagger.Provides import dagger.hilt.InstallIn import dagger.hilt.components.SingletonComponent -import org.sopt.and.data.service.WavveService +import org.sopt.and.data.service.AuthService +import org.sopt.and.data.service.MyService import retrofit2.Retrofit import javax.inject.Singleton @@ -13,6 +14,11 @@ import javax.inject.Singleton object ServiceModule { @Provides @Singleton - fun providerService(retrofit: Retrofit): WavveService = - retrofit.create(WavveService::class.java) + fun providerAuthService(retrofit: Retrofit): AuthService = + retrofit.create(AuthService::class.java) + + @Provides + @Singleton + fun providerMyService(retrofit: Retrofit): MyService = + retrofit.create(MyService::class.java) }