[feat] 여행 후기 리뷰(TripRecordReview)의 본문(content) 작성 가능 여부 검증 로직 구현 #121
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.
🎯 목적
새 기능 (New Feature)
간략한 설명:
여행 후기 리뷰에서 본문을 작성할 수 있는지 여부를 검증하고 반환하는 기능을 구현했습니다.
canRegisterContent
값으로 작성 가능 여부를 반환합니다.로그인한 사용자가 등록한
여행 후기 별점 id
를 반환합니다.🛠 작성/변경 사항
- 여행 후기 리뷰 본문을 작성할 수 있는지 확인합니다.
1. 여행 후기 리뷰를 복사해서 계획 등록까지 완료해야 합니다. 단순히 여행 계획을 작성한 사례라면 유효하지 않습니다.
2. 등록한 여행 계획의 여행 종료 시점(tripEndDay)이 오늘 날짜보다 최소 하루 과거여야 합니다.
3. 유저가 여행 후기 리뷰에 별점(ratingScore)를 먼저 등록해야 합니다.
4. 유저가 이미 여행 후기 리뷰의
content
를 작성하지 않았어야 합니다.🔗 관련 이슈