REFACTOR: 캐릭터 도메인 정리 및 캐릭터 수정 API 구현#55
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🛡️ Issues
💡 Improvements
|
| LocalDateTime lastMessageAt = chatRoomRepository.findByRelationshipId(relationship.getId()) | ||
| .map(ChatRoom::getLastMessageAt) | ||
| .orElse(null); | ||
| int daysTogether = (int) ChronoUnit.DAYS.between(relationship.getStartedAt(), LocalDate.now()) + 1; |
There was a problem hiding this comment.
아래 빌더에 이걸 활용한 dday 세팅하는건 빠져있는거 같은데, 맞을까요??
There was a problem hiding this comment.
앗 빌더에 안 넣었네요 감사합니다
| CHARACTER_DELETE_TOO_SOON(HttpStatus.BAD_REQUEST, "CHARACTER400_7", "캐릭터 생성 후 24시간이 지나야 삭제할 수 있습니다."), | ||
| INVALID_TRAIT_SELECTION(HttpStatus.BAD_REQUEST, "CHARACTER400_8", "매력 키워드와 우선순위는 중복될 수 없고 1부터 연속되어야 합니다."); | ||
| INVALID_TRAIT_SELECTION(HttpStatus.BAD_REQUEST, "CHARACTER400_8", "매력 키워드와 우선순위는 중복될 수 없고 1부터 연속되어야 합니다."), | ||
| CHARACTER_ALREADY_EDITED(HttpStatus.BAD_REQUEST, "CHARACTER400_9", "캐릭터 정보는 최초 1회만 수정할 수 있습니다."); |
There was a problem hiding this comment.
이게 캐릭터를 삭제하게 되었을때도, 수정된거로 될텐데, 캐릭터를 24시간 이내에 재생성할 수 없는 에러가 터지지 않을까요?? 해당 부분이 고려되었는지 궁금합니다!
There was a problem hiding this comment.
넵 따로 분리된 거라 영향 없습니다
개선 사항
|
Summary
Related Issue
Describe your code
작업 내용 (What I Did) : 구현한 기능의 요약 설명 작성
스크린샷/결과 (Optional) : API 테스트 결과 첨부
(로컬에서 캐릭터 API 테스트 완료)
논의사항/질문 (To Reviewers) : 리뷰어들이 집중해서 봐주었으면 하는 부분 기술
## Checklist - [ ] 리뷰어 등록