Skip to content

Commit

Permalink
[chore] #98 함수명 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Doreminwoo committed Jan 11, 2024
1 parent 7ca7341 commit 79e2b4b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ import org.sopt.pingle.data.model.remote.response.ResponseJoinGroupInfoDto
import org.sopt.pingle.util.base.BaseResponse

interface JoinGroupCodeRemoteDataSource {
suspend fun getJoinGroupCodeInfo(teamId: Int): BaseResponse<ResponseJoinGroupInfoDto>
suspend fun getJoinGroupInfo(teamId: Int): BaseResponse<ResponseJoinGroupInfoDto>
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ import javax.inject.Inject
class JoinGroupCodeRemoteDataSourceImpl @Inject constructor(
private val joinGroupService: JoinGroupService
) : JoinGroupCodeRemoteDataSource {
override suspend fun getJoinGroupCodeInfo(teamId: Int): BaseResponse<ResponseJoinGroupInfoDto> =
joinGroupService.getJoinGroupDetail(teamId = teamId)
override suspend fun getJoinGroupInfo(teamId: Int): BaseResponse<ResponseJoinGroupInfoDto> =
joinGroupService.getJoinGroupInfo(teamId = teamId)
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class JoinGroupCodeRepositoryImpl @Inject constructor(
) : JoinGroupCodeRepository {
override fun getJoinGroupInfo(teamId: Int): Flow<JoinGroupInfoEntity> = flow {
val result = runCatching {
joinGroupCodeRemoteDataSource.getJoinGroupCodeInfo(teamId = teamId).data.toJoinGroupCodeEntity()
joinGroupCodeRemoteDataSource.getJoinGroupInfo(teamId = teamId).data.toJoinGroupCodeEntity()
}
emit(result.getOrThrow())
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import retrofit2.http.Path

interface JoinGroupService {
@GET("$VERSION/$TEAMS/{$TEAM_ID}")
suspend fun getJoinGroupDetail(
suspend fun getJoinGroupInfo(
@Path("$TEAM_ID") teamId: Int
): BaseResponse<ResponseJoinGroupInfoDto>

Expand Down

0 comments on commit 79e2b4b

Please sign in to comment.