[FEAT] 이미지 저장·조회·교체 API 구현 이미지 다중 처리 로직 구현 (#50)#51
Merged
Conversation
…테이블 분리 + 복수 이미지 제공)
…미지 URL도 추가로 제공하도록 변경
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.
📌 관련 이슈
✨ PR 세부 내용
1. 주요 변경 사항
image테이블 도입(owner_type, owner_id)로 구분해 한 곳에서 통합 관리POST /images: 한 번에 여러 이미지 등록 가능PUT /images/{ownerType}/{ownerId}: 전체 교체(교체 시 사용되지 않는 S3 객체·DB 레코드 삭제 + 새 이미지 일괄 저장)GET /images: 특정 객체의 이미지 조회 가능. 기존 조회에서 이미지 조회도 같이 하도록 수정해서 딱히 필요는 없음고유 Id(PK)반환UUID_ownerType_ownerId_yyyyMMdd…형식으로 고유 생성DeleteObjects로 일괄 삭제/images엔드포인트 전체 스펙 추가 및 예시 개선imageUrl: String필드 제거,List<String> imageUrls또는 대표 이미지 필드(첫번째 업로드 이미지)로 대체2. 검토 체크리스트 (추가 고려 사항)
✅ 체크리스트