Skip to content

Commit 09c0633

Browse files
committed
[refactor] #344 코드 정리
1 parent 3a7a767 commit 09c0633

1 file changed

Lines changed: 3 additions & 10 deletions

File tree

app/src/main/java/com/runnect/runnect/di/ServiceModule.kt

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,28 +19,21 @@ import javax.inject.Singleton
1919
@InstallIn(SingletonComponent::class)
2020
object ServiceModule {
2121

22-
/** -------- v2 -------- */
2322
@Singleton
2423
@Provides
25-
fun providePUserV2Service(@RetrofitModule.RetrofitV2 retrofitV2: Retrofit) =
24+
fun providePUserService(@RetrofitModule.RetrofitV2 retrofitV2: Retrofit) =
2625
retrofitV2.create(UserService::class.java)
2726

2827
@Singleton
2928
@Provides
30-
fun providePLoginV2Service(@RetrofitModule.RetrofitV2 retrofitV2: Retrofit) =
29+
fun providePLoginService(@RetrofitModule.RetrofitV2 retrofitV2: Retrofit) =
3130
retrofitV2.create(LoginService::class.java)
3231

3332
@Singleton
3433
@Provides
35-
fun providePCourseV2Service(@RetrofitModule.RetrofitV2 retrofitV2: Retrofit) =
34+
fun providePCourseService(@RetrofitModule.RetrofitV2 retrofitV2: Retrofit) =
3635
retrofitV2.create(CourseService::class.java)
3736

38-
/** -------- v1 -------- */
39-
@Singleton
40-
@Provides
41-
fun provideLoginService(@RetrofitModule.Runnect runnectRetrofit: Retrofit) =
42-
runnectRetrofit.create(TokenService::class.java)
43-
4437
@Singleton
4538
@Provides
4639
fun provideKSearchService(@RetrofitModule.Tmap tmapRetrofit: Retrofit) =

0 commit comments

Comments
 (0)