-
Notifications
You must be signed in to change notification settings - Fork 0
Feat/#61 시간대별 랜덤 장소 추천 기능(홈화면) 구현 #62
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
Changes from all commits
4ea8dbf
510275f
f5e562c
f6f3492
b7bcbeb
4744191
0dbb417
87b9a2f
7b0fb23
867fe35
02332bb
303327f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| package com.campus.campus.domain.place.application.dto.response; | ||
|
|
||
| import java.util.List; | ||
|
|
||
| import com.campus.campus.domain.place.domain.entity.Coordinate; | ||
|
|
||
| import io.swagger.v3.oas.annotations.media.Schema; | ||
| import jakarta.validation.constraints.NotBlank; | ||
|
|
||
| public record RecommendNearByPlaceResponse( | ||
| @Schema(description = "해당 장소명", example = "숙명여자대학교") | ||
| @NotBlank | ||
| String placeName, | ||
|
|
||
| @Schema(description = "장소 식별 고유 ID") | ||
| @NotBlank | ||
| String placeKey, | ||
|
|
||
| @Schema(description = "장소 주소", example = "서울특별시 용산구 청파로47길 99") | ||
| @NotBlank | ||
| String address, | ||
|
|
||
| @Schema(description = "장소 카테고리", example = "교육,학문>대학교") | ||
| @NotBlank | ||
| String category, | ||
|
|
||
| @Schema(description = "장소 상세 정보 네이버 페이지 하이퍼링크", example = "https://map.naver.com/v5/search/%EC%88%99%EB%AA%85%EC%97%AC%EC%9E%90%EB%8C%80%ED%95%99%EA%B5%90+%EC%A0%9C1%EC%BA%A0%ED%8D%BC%EC%8A%A4?c=37.545947,126.964578,15,0,0,0,dh") | ||
| String link, | ||
|
|
||
| @Schema(description = "전화번호", example = "010-1234-1234") | ||
| String telephone, | ||
|
|
||
| @Schema(description = "위도/경도") | ||
| Coordinate coordinate, | ||
|
|
||
| @Schema(description = "이미지 url") | ||
| List<String> imgUrls | ||
| ) { | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| package com.campus.campus.domain.place.application.dto.response; | ||
|
|
||
| import io.swagger.v3.oas.annotations.media.Schema; | ||
|
|
||
| public record RecommendPartnershipPlaceResponse( | ||
| @Schema(description = "장소 ID", example = "10") | ||
| Long placeId, | ||
|
|
||
| @Schema(description = "장소 이름", example = "봉구스밥버거 중앙대후문점") | ||
| String placeName, | ||
|
|
||
| @Schema(description = "제휴한 학생회 이름", example = "가천대학교 총학생회") | ||
| String councilName, | ||
|
|
||
| @Schema(description = "제휴 이름 (게시글 제목)", example = "전 메뉴 10% 할인") | ||
| String partnershipTitle, | ||
|
|
||
| @Schema(description = "장소 주소", example = "서울특별시 동작구 상도1동") | ||
| String address, | ||
|
|
||
| @Schema(description = "제휴 썸네일 이미지", example = "https://cdn.example.com/image.jpg") | ||
| String imageUrl | ||
| ) { | ||
| } |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,17 @@ | ||||||||||||||||||||||||||||||||||||||||||
| package com.campus.campus.domain.place.application.dto.response; | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| import java.util.List; | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| import io.swagger.v3.oas.annotations.media.Schema; | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| public record RecommendPlaceByTimeResponse( | ||||||||||||||||||||||||||||||||||||||||||
| @Schema(description = "추천 타입 (LUNCH: 점심, CAFE: 카페, NONE: 해당 시간 아님)", example = "LUNCH") | ||||||||||||||||||||||||||||||||||||||||||
| String type, | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| @Schema(description = "추천 제휴 게시글 (최대 2개)") | ||||||||||||||||||||||||||||||||||||||||||
| List<RecommendPartnershipPlaceResponse> partnershipPosts, | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| @Schema(description = "추천 주변 장소 (최대 2개)") | ||||||||||||||||||||||||||||||||||||||||||
| List<RecommendNearByPlaceResponse> nearbyPlaces | ||||||||||||||||||||||||||||||||||||||||||
| ) { | ||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+7
to
+16
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Schema 설명과 실제 사용 값 불일치
📝 제안 수정안 public record RecommendPlaceByTimeResponse(
- @Schema(description = "추천 타입 (LUNCH: 점심, CAFE: 카페, NONE: 해당 시간 아님)", example = "LUNCH")
+ @Schema(description = "추천 타입 (LUNCH: 점심, CAFE: 카페, DINNER: 저녁, BAR: 술집, 또는 추천 시간대 아님)", example = "LUNCH")
String type,📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.