fix(profile): non-null 응답 호환을 위해 누락된 SNS 필드를 복구한다
This commit is contained in:
@@ -6,6 +6,9 @@
|
||||
- [x] 회원 정보 수정 API(`ProfileUpdateRequest`, `MemberService.profileUpdate`) 반영
|
||||
- [x] SNS 정보를 반환하는 API 응답(`ProfileResponse`, `MyPageResponse`, `CreatorResponse`, `GetCreatorDetailResponse`, `GetLiveRoomUserProfileResponse`, `GetRoomDetailManager`) 반영
|
||||
- [x] LSP 진단/테스트/빌드 검증 및 결과 기록
|
||||
- [x] 2차 수정: non-null Response 호환성을 위해 `GetCreatorDetailResponse`의 `websiteUrl`, `blogUrl` 복구
|
||||
- [x] 2차 수정: non-null Response 호환성을 위해 `GetLiveRoomUserProfileResponse`의 `websiteUrl`, `blogUrl` 복구
|
||||
- [x] 2차 수정 검증: 테스트/빌드 재실행 및 결과 기록
|
||||
|
||||
## 검증 기록
|
||||
|
||||
@@ -17,3 +20,11 @@
|
||||
- 정적 진단: `lsp_diagnostics` 실행 시 `.kt` LSP 미구성으로 불가(환경 제약 확인)
|
||||
- 동작 검증: `./gradlew test && ./gradlew build` 실행
|
||||
- 결과: `BUILD SUCCESSFUL` (test 성공 후 build 성공)
|
||||
|
||||
- 2차 수정
|
||||
- 무엇을: non-null Response에서 제거되었던 `websiteUrl`, `blogUrl` 필드를 `GetCreatorDetailResponse`, `GetLiveRoomUserProfileResponse`에 복구했다. 동시에 각 서비스 매핑에서 해당 필드를 다시 응답에 포함했다.
|
||||
- 왜: 필수 응답 키 제거로 인한 하위 호환성 이슈를 해소하기 위해서다.
|
||||
- 어떻게:
|
||||
- 코드 반영: `GetCreatorDetailResponse`, `ExplorerService`, `GetLiveRoomUserProfileResponse`, `LiveRoomService`
|
||||
- 동작 검증: `./gradlew test && ./gradlew build` 실행
|
||||
- 결과: `BUILD SUCCESSFUL` (test 성공 후 build 성공)
|
||||
|
||||
@@ -248,6 +248,8 @@ class ExplorerService(
|
||||
fancimmUrl = creatorAccount.fancimmUrl,
|
||||
xUrl = creatorAccount.xUrl,
|
||||
youtubeUrl = creatorAccount.youtubeUrl,
|
||||
websiteUrl = creatorAccount.websiteUrl,
|
||||
blogUrl = creatorAccount.blogUrl,
|
||||
kakaoOpenChatUrl = creatorAccount.websiteUrl
|
||||
)
|
||||
}
|
||||
|
||||
@@ -10,5 +10,7 @@ data class GetCreatorDetailResponse(
|
||||
val fancimmUrl: String,
|
||||
val xUrl: String,
|
||||
val youtubeUrl: String,
|
||||
val websiteUrl: String,
|
||||
val blogUrl: String,
|
||||
val kakaoOpenChatUrl: String
|
||||
)
|
||||
|
||||
@@ -9,6 +9,8 @@ data class GetLiveRoomUserProfileResponse(
|
||||
val fancimmUrl: String,
|
||||
val xUrl: String,
|
||||
val youtubeUrl: String,
|
||||
val websiteUrl: String,
|
||||
val blogUrl: String,
|
||||
val kakaoOpenChatUrl: String,
|
||||
val introduce: String,
|
||||
val tags: String,
|
||||
|
||||
@@ -1123,6 +1123,8 @@ class LiveRoomService(
|
||||
fancimmUrl = user.fancimmUrl,
|
||||
xUrl = user.xUrl,
|
||||
youtubeUrl = user.youtubeUrl,
|
||||
websiteUrl = user.websiteUrl,
|
||||
blogUrl = user.blogUrl,
|
||||
kakaoOpenChatUrl = user.websiteUrl,
|
||||
introduce = user.introduce,
|
||||
tags = user.tags
|
||||
|
||||
Reference in New Issue
Block a user