7주차 미션 / 1조 박민우#24
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
|
||
| import kotlinx.serialization.Serializable | ||
|
|
||
| @Serializable |
There was a problem hiding this comment.
네비게이션 라우트와 dto 등에 쓰이는 직렬화 어노테이션입니다 이 상황에서는 쓰일 필요가 없습니다
1. 미션
2. 구현에 대한 설명
1. Retrofit2를 활용한 서버 통신
PostApiService): GET, POST, PATCH, DELETE 메서드를 정의하여 게시글 CRUD를 설계했습니다.CreatePostDto,UpdatePostDto,PostDto를 정의하고, 도메인 모델로의 변환 로직(toDomain)을 추가했습니다.NetworkModule을 통해 Retrofit 객체와 ApiService를 싱글톤으로 주입받아 사용했습니다.PostUiState(Sealed Class)를 정의하여 Loading, Success, Error 상태를 관리했습니다.PostViewmodel: viewModelScope 내에서 Coroutine을 사용하여 비동기 네트워크 요청을 수행하고, 결과를 UI State에 반영했습니다.3. 스크린샷 & 실행영상
practice.mp4
mission.mp4
4. 기타