Skip to content

Commit

Permalink
[CHORE/#7] 주석 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
chattymin committed Dec 30, 2023
1 parent 480aa33 commit a9fd720
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import com.going.ui.extension.setOnSingleClickListener
import kotlinx.coroutines.flow.launchIn
import kotlinx.coroutines.flow.onEach

class LoginActivity() : BaseActivity<ActivityLoginBinding>(R.layout.activity_login) {
class LoginActivity : BaseActivity<ActivityLoginBinding>(R.layout.activity_login) {
private val viewModel by viewModels<LoginViewModel>()

override fun onCreate(savedInstanceState: Bundle?) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,17 @@ class LoginViewModel : ViewModel() {
}
}

// 서버통신 - 카카오 토큰 보내서 서비스 토큰 받아오기
// 서버통신 - 카카오 토큰 보내서 서비스 토큰 받아오기 - 서버와 협의 후 수정예정
private fun changeTokenFromServer(
accessToken: String,
social: String = KAKAO,
) {
_postChangeTokenState.value = UiState.Loading

viewModelScope.launch {
// 통신 로직

// 성공시 저러케 서버에서 준 정보를 넣음
// 성공시 서버에서 준 정보를 넣는 예시 코드
_postChangeTokenState.value = UiState.Success(
AuthTokenModel(
isResigned = true,
Expand Down

0 comments on commit a9fd720

Please sign in to comment.