-
Notifications
You must be signed in to change notification settings - Fork 3
fix: [NDGL-141] 컨텐츠 등록 및 구독 API 수정 #76
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
The head ref may contain hidden characters: "feature/NDGL-141-Server-\uCEE8\uD150\uCE20-\uB4F1\uB85D-\uBC0F-\uAD6C\uB3C5-API-\uC218\uC815"
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
a25dd38
refactor: 공통 텍스트 유틸 확장 (defaultIfBlank, joinOrDefault)
WooJJam e8d5556
refactor: 사용자 제안 템플릿 모델 정비 (카테고리 다중화, 지역 필드 제거, 추천 이유 선택)
WooJJam 09cbc11
feat: 어드민 응답 카테고리 한글 라벨로 노출
WooJJam 02d0f02
chore: 부트스트랩 LOG_PATH 미정의 잔여 디렉토리 제거 (logback property 기본값 적용)
WooJJam 0b4034a
refactor: 구독 API를 영상 링크 기반으로 변경
WooJJam 1c02f33
refactor: Swagger 요청 본문 어노테이션 제거 (DTO @Schema로 통합)
WooJJam 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
18 changes: 7 additions & 11 deletions
18
...pp/ndgl/application/domains/travel/controller/dto/CreateUserSuggestedTemplateRequest.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 |
|---|---|---|
| @@ -1,29 +1,25 @@ | ||
| package com.yapp.ndgl.application.domains.travel.controller.dto; | ||
|
|
||
| import com.fasterxml.jackson.annotation.JsonProperty; | ||
| import com.yapp.ndgl.common.type.DomesticRegion; | ||
| import java.util.List; | ||
|
|
||
| import com.yapp.ndgl.common.type.TravelCategory; | ||
|
|
||
| import io.swagger.v3.oas.annotations.media.Schema; | ||
| import jakarta.validation.constraints.NotBlank; | ||
| import jakarta.validation.constraints.NotEmpty; | ||
| import jakarta.validation.constraints.Size; | ||
|
|
||
| public record CreateUserSuggestedTemplateRequest( | ||
| @Schema(description = "YouTube 영상 링크", example = "https://youtu.be/abc12345678", requiredMode = Schema.RequiredMode.REQUIRED) | ||
| @NotBlank(message = "영상 링크는 필수입니다.") | ||
| @JsonProperty("video_link") | ||
| String videoLink, | ||
|
|
||
| @Schema(description = "추천 이유", example = "산정호수 일출 명소", requiredMode = Schema.RequiredMode.REQUIRED) | ||
| @NotBlank(message = "추천 이유는 필수입니다.") | ||
| @Schema(description = "추천 이유 (선택)", example = "산정호수 일출 명소") | ||
| @Size(max = 1000, message = "추천 이유는 1000자 이하여야 합니다.") | ||
| @JsonProperty("recommend_reason") | ||
| String recommendReason, | ||
|
|
||
| @Schema(description = "여행 카테고리 (선택)", example = "UNCATEGORIZED") | ||
| TravelCategory category, | ||
|
|
||
| @Schema(description = "국내 지역 (선택)", example = "UNDEFINED") | ||
| DomesticRegion region | ||
| @Schema(description = "여행 카테고리 (복수 선택)", example = "[\"FOOD\"]", requiredMode = Schema.RequiredMode.REQUIRED) | ||
| @NotEmpty(message = "카테고리는 최소 한 개 이상 선택해야 합니다.") | ||
| List<TravelCategory> category | ||
| ) { | ||
| } | ||
11 changes: 11 additions & 0 deletions
11
...ndgl/application/domains/travel/controller/dto/SubscribeUserSuggestedTemplateRequest.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,11 @@ | ||
| package com.yapp.ndgl.application.domains.travel.controller.dto; | ||
|
|
||
| import io.swagger.v3.oas.annotations.media.Schema; | ||
| import jakarta.validation.constraints.NotBlank; | ||
|
|
||
| public record SubscribeUserSuggestedTemplateRequest( | ||
| @Schema(description = "YouTube 영상 링크", example = "https://youtu.be/abc12345678", requiredMode = Schema.RequiredMode.REQUIRED) | ||
| @NotBlank(message = "영상 링크는 필수입니다.") | ||
| String videoLink | ||
| ) { | ||
| } |
44 changes: 0 additions & 44 deletions
44
...om/yapp/ndgl/application/domains/travel/controller/dto/UserSuggestedTemplateResponse.java
This file was deleted.
Oops, something went wrong.
5 changes: 3 additions & 2 deletions
5
...ava/com/yapp/ndgl/application/domains/travel/event/UserSuggestedTemplateCreatedEvent.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 |
|---|---|---|
| @@ -1,12 +1,13 @@ | ||
| package com.yapp.ndgl.application.domains.travel.event; | ||
|
|
||
| import java.util.List; | ||
|
|
||
| public record UserSuggestedTemplateCreatedEvent( | ||
| Long templateId, | ||
| String videoId, | ||
| String videoLink, | ||
| String suggesterUuid, | ||
| String category, | ||
| String region, | ||
| List<String> category, | ||
| String recommendReason | ||
| ) { | ||
| } |
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
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
12 changes: 0 additions & 12 deletions
12
common/src/main/java/com/yapp/ndgl/common/type/DomesticRegion.java
This file was deleted.
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.