Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] 여행 후기 리뷰(TripRecordReview)의 본문(content) 작성 가능 여부 검증 로직 구현 #121

Merged
merged 2 commits into from
Jan 25, 2024

Conversation

meena2003
Copy link
Member

🎯 목적

  • 새 기능 (New Feature)

  • 간략한 설명:

    • 여행 후기 리뷰에서 본문을 작성할 수 있는지 여부를 검증하고 반환하는 기능을 구현했습니다.

    • canRegisterContent 값으로 작성 가능 여부를 반환합니다.

    • 로그인한 사용자가 등록한 여행 후기 별점 id를 반환합니다.


🛠 작성/변경 사항

- 여행 후기 리뷰 본문을 작성할 수 있는지 확인합니다.

  • 작성 여부는 몇 가지 기준으로 판단합니다.

    1. 여행 후기 리뷰를 복사해서 계획 등록까지 완료해야 합니다. 단순히 여행 계획을 작성한 사례라면 유효하지 않습니다.

    2. 등록한 여행 계획의 여행 종료 시점(tripEndDay)이 오늘 날짜보다 최소 하루 과거여야 합니다.

    3. 유저가 여행 후기 리뷰에 별점(ratingScore)를 먼저 등록해야 합니다.

    4. 유저가 이미 여행 후기 리뷰의 content를 작성하지 않았어야 합니다.


🔗 관련 이슈

@meena2003 meena2003 added the feat 기능을 추가합니다. label Jan 25, 2024
@meena2003 meena2003 self-assigned this Jan 25, 2024
Copy link

Test Results

0 tests  ±0   0 ✅ ±0   0s ⏱️ ±0s
0 suites ±0   0 💤 ±0 
0 files   ±0   0 ❌ ±0 

Results for commit cf279b1. ± Comparison against base commit 3cf634a.

@BackInGone BackInGone merged commit ad7dc54 into develop Jan 25, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat 기능을 추가합니다.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feat] 여행 후기 리뷰(TripRecordReview) 작성 가능 여부 로직 생성
2 participants