-
Notifications
You must be signed in to change notification settings - Fork 0
[refactor] 맞춤 추천 로직 개선 #2
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
Merged
Merged
Changes from 7 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
e3f886e
feat: 맞춤추천을 세션별 순차 제공으로 변경
hyeonszz 7666921
feat: 랜덤추천을 세션별 중복 방지로 변경
hyeonszz 01fc8ca
Merge branch 'develop' into feature/1-custom-recommendation-ranking
hyeonszz b2f40b7
refactor: 맞춤추천 동점 정렬을 역 ID 기준으로 변경
hyeonszz bce891a
chore: CI 실행 확인
hyeonszz c94ddaa
docs: 맞춤추천 400 응답 조건 보완
hyeonszz 33f37b2
fix: 추천 세션 검증과 문서 정합성 보완
hyeonszz 53d0f42
fix: 추천 세션 이력을 24시간으로 제한
hyeonszz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
19 changes: 19 additions & 0 deletions
19
...com/cotato/nextstation/domain/recommendation/dto/request/RandomRecommendationRequest.java
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| package com.cotato.nextstation.domain.recommendation.dto.request; | ||
|
|
||
| import io.swagger.v3.oas.annotations.media.Schema; | ||
| import jakarta.validation.constraints.NotBlank; | ||
| import jakarta.validation.constraints.Pattern; | ||
|
|
||
| @Schema(description = "랜덤추천 요청") | ||
| public record RandomRecommendationRequest( | ||
|
|
||
| @Schema(description = "랜덤추천 결과 화면 세션 ID. 같은 결과 화면에서 다시 뽑을 때 동일한 값을 사용한다.", | ||
| example = "550e8400-e29b-41d4-a716-446655440000") | ||
| @NotBlank(message = "추천 세션 ID는 필수입니다.") | ||
| @Pattern( | ||
| regexp = "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$", | ||
| message = "추천 세션 ID는 UUID 형식이어야 합니다." | ||
| ) | ||
| String recommendationSessionId | ||
| ) { | ||
| } |
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.