Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
패키지 이미지 URL 기능 추가 및 패키지 생성 API 개선
📝 Summary
패키지 조회 시 이미지를 표시하기 위한
imageUrl필드를 추가하고, 패키지 생성 API의 검증 로직을 개선하여 500 에러를 방지했습니다.🎯 작업 내용
1. 패키지 이미지 URL 기능 추가
imageUrl필드 추가imageUrl필드 추가HomePassInfoRes(홈 화면 패키지 조회)MyPassRes(내 패키지 조회)PassDetailRes(패키지 상세 조회)imageUrl선택 필드 추가imageUrl처리 추가2. DB 이미지 데이터 추가
update_pass_images.sql파일 제공🔧 변경된 파일
엔티티 & DTO
Pass.java- imageUrl 필드 추가PassCreateReq.java- imageUrl 선택 필드 추가HomePassInfoRes.java- imageUrl 반환 추가MyPassRes.java- imageUrl 반환 추가PassDetailRes.java- imageUrl 반환 추가📊 API 변경사항
패키지 조회 API (모든 조회 API)
변경 전:
{ "passId": 1, "passName": "운동 첫걸음", "passPrice": 43000 }변경 후:
{ "passId": 1, "passName": "운동 첫걸음", "passPrice": 43000, "imageUrl": "https://images.unsplash.com/photo-xxx" }패키지 생성 API
Request Body (imageUrl 선택 추가):
{ "facilityIdList": [8, 9, 10], "passPrice": 80000, "passName": "모브의 첫번째 패키지", "passDescription": "열심히 운동하자", "storageType": "LOCKER", "imageUrl": "https://images.unsplash.com/photo-xxx" // 선택사항 }✅ 해결된 이슈
데이터 정합성 개선
📌 배포 시 주의사항
. 프론트엔드 대응
imageUrl필드 추가됨<img src={pass.imageUrl} />형태로 사용 가능🔗 관련 이슈