Conversation
- BabyResponse의 dueDate를 LocalDate로 변환하고 @jsonformat('yyyy-MM-dd') 적용하여 날짜만 출력되도록 수정 - 아기 선택/변경 API에서 BabyResponse 반환으로 프론트엔드 활용성 개선 - PATCH /api/user/phone 엔드포인트 추가 - 로그인된 사용자가 자신의 phone, partnerphone을 등록/수정 가능 - Swagger 문서화 추가로 API 명세 보강
- 아기 전체 목록 조회 API (GET /api/user/baby)
- 특정 아기 정보 조회 API (GET /api/user/baby/{babyId})
- 아기 정보 등록 API (POST /api/user/baby/basic)
- 태명(babyName), 출산 예정일만으로 등록
- 등록 후 BabyResponse 반환 및 selected_baby_id 변경
- 아기 정보 수정 API (PATCH /api/user/baby/{babyId})
- JSON + 이미지 multipart 요청 처리
- 아기 삭제 API (DELETE /api/user/baby/{babyId})
- BabyResponse DTO에 profileImage 필드 추가
- '전화번호가 성공적으로 변경되었습니다.' 메시지를 반환
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.
👶 아기 CRUD 및 선택 기능 전체 구현
✅ 주요 기능 요약
1. 👶 아기 등록 기능
POST /api/user/baby: 사용자 이름 + 태명 + 출산예정일을 함께 입력하여 아기 등록 (튜토리얼 전용)POST /api/user/baby/basic: 태명 + 출산 예정일만 입력하여 간편 등록BabyResponseJSON 형태로 반환2. 📖 아기 조회 기능
GET /api/user/baby: 로그인된 사용자의 전체 아기 목록 조회GET /api/user/baby/{babyId}: 특정 아기 정보 단건 조회3. ✏️ 아기 정보 수정 기능
PATCH /api/user/baby/{babyId}: Multipart 요청으로 이름, 출산예정일, 이미지 수정4. 🗑️ 아기 삭제 기능
DELETE /api/user/baby/{babyId}: 해당 아기를 삭제5. ✅ 선택된 아기 변경
PATCH /api/user/select-baby/{babyId}: 등록된 아기 중 하나를 선택된 아기로 지정💬 기타 개선 사항
@AuthenticationPrincipal) 및 401/403 응답 처리@Operation,@ApiResponses)BabyResponse를 통한 응답 통일dueDateJSON 직렬화 시yyyy-MM-dd포맷 적용@RequestParam방식으로 대체