Skip to content

[Feat/#163] 마이페이지 관련 API 작업#165

Merged
vvan2 merged 16 commits intodevelopfrom
feat/#163-mypage-api-all
Mar 31, 2026
Merged

[Feat/#163] 마이페이지 관련 API 작업#165
vvan2 merged 16 commits intodevelopfrom
feat/#163-mypage-api-all

Conversation

@vvan2
Copy link
Copy Markdown
Member

@vvan2 vvan2 commented Mar 25, 2026

ISSUE

❗ WORK DESCRIPTION

  • 마이페이지 유저정보 수정 API
  • 마이페이지 반려견 정보 수정 API
  • 마이페이지 내가 기록한 산책 API
  • 마이페이지 저장목록 API
  • 마이페이지 내가 남긴 후기 API

📸 SCREENSHOT

BEFORE AFTER

📢 TO REVIEWERS

  • 마이페이지 유저, 펫 정보 불러오는 API 가 민성이가 작업한 곳에 있는데, merge 되면 땡겨오고 conflict 수정 하면서 테스트해보겠습니답
  • 도키 PR 몇달만이지..? 도키 화이팅
  • 왜 뭉탱이로 작업했냐고 묻지 말아줘

@vvan2 vvan2 requested review from JiWoo1261 and sonms March 25, 2026 15:11
@vvan2 vvan2 self-assigned this Mar 25, 2026
@vvan2 vvan2 added the feature ✨ 새로운 기능 구현 label Mar 25, 2026
@vvan2 vvan2 linked an issue Mar 25, 2026 that may be closed by this pull request
1 task
@vvan2 vvan2 added the 🐻주완 주완 전용 라벨 label Mar 25, 2026
Copy link
Copy Markdown
Member

@sonms sonms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

굳굿... 힘내봅시다!!!!!! 고생하셨습니다!

converterFactory: Converter.Factory
): Retrofit = Retrofit.Builder()
.baseUrl(BuildConfig.BASE_URL)
.baseUrl(if (BuildConfig.DEBUG) BuildConfig.DEBUG_BASE_URL else BuildConfig.BASE_URL) //BuildConfig.BASE_URL)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이거 아마 pull 받으면 적용되어있..?을 겁니다 ㅎㅎ

Comment on lines +24 to +40
fun RoutePostDto.toEntity() = RoutePostEntity(
postId = postId,
regionName = regionName,
title = title,
date = date,
durationMinutes = durationMinutes,
isLiked = isLiked,
imageUrl = imageUrl,
)

fun ReviewPostDto.toEntity() = ReviewPostEntity(
postId = postId,
title = title,
regionName = regionName,
date = date,
categoryOptionSummary = categoryOptionSummary,
) No newline at end of file
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

우리 이제 클린이라 dto안에 toEntity 가 존재해야합니다!

의존성 바뀌었어요 도하하~

val isLiked: Boolean = false,
val categoryOptionSummary: List<String> = emptyList(),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

List는 컬렉션으로 가짜 불변이에요!
ImmutableList를 사용해주세요~
아래에 CourseInfoState도 마찬가지입니다~!

Comment on lines +23 to +30
composable<CourseInfoNavRoute> { backStackEntry ->
val route = backStackEntry.toRoute<CourseInfoNavRoute>()
CourseInfoRoute(
navigateUp = navigateUp,
courseType = route.courseType,
)
}
}

@Serializable
data class CourseInfo(
val courseType: String,
) No newline at end of file
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아래 viewmodel에서도 savedStateHandle 로 가져와서 사용하고 있는 것 같아요! 확인 부탁드립니다~

Comment on lines +48 to +54
LaunchedEffect(Unit) {
viewModel.sideEffect.collect { effect ->
when (effect) {
is CourseInfoSideEffect.ShowSnackBar -> snackbarHostState.showSnackbar(effect.message)
}
}
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

viewmodel.sideeffect.collectSideEffect 로 변경 부탁드려요~

Comment on lines +39 to +51
LaunchedEffect(viewModel.sideEffect) {
viewModel.sideEffect.collect { effect ->
when (effect) {
is UserProfileSideEffect.ShowSnackBar -> {
Toast.makeText(context, effect.message, Toast.LENGTH_SHORT).show()
}
is UserProfileSideEffect.NavigateUp -> {
navigateUp()
}
else -> Unit
}
}
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이것도 collectSideEffect로 변경해주세요~


testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
buildConfigField("String", "BASE_URL", properties["base.url"].toString())
buildConfigField("String", "DEBUG_BASE_URL", properties["debug.base.url"].toString()) // ✅ 여기로
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이것도 아마 pull 하면 생길..듯?합니다

@vvan2 vvan2 merged commit 96a9b19 into develop Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature ✨ 새로운 기능 구현 🐻주완 주완 전용 라벨

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feat] 마이페이지 뷰 api

2 participants