-
Notifications
You must be signed in to change notification settings - Fork 0
Feat/#86 장소 상세조회, 제휴 신청, 리뷰 OCR 인증 기능 구현 #87
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
Changes from 15 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
9fade18
feat: exception,ocrClient,ocrConfig,reviewController 수정
1224kang 136b736
feat: DTO 정리
1224kang 89c0a53
feat: 재êµì장소 상세 조회, 제휴 요청ê¹
1224kang f2ee0f5
feat: OCR 리뷰 isVerified=true로 변경해서 저장하도록 수정
1224kang 593809e
feat: 리뷰 작성 로직 설명 추가 및 제휴여부 판단 할 수 있는 필드 추가
1224kang 6c420bd
fix: coderabbit 1차 PR 수정
1224kang dde4856
refactor: 리소스 파일 ocr 설정 추가
1winhyun 4292348
fix: PR 2차 수정
1224kang d7fe45b
Merge branch 'feat/#86' of https://github.com/our-campUS/our-campUS-B…
1224kang aea391f
refactor: 리소스 파일 ocr 사진 최대 크기 수정
1winhyun 9feaf72
refactor: OcrConfig RestTemplate 사용에서 RestClient 사용으로 수정
1winhyun 66037b4
refactor: OCR 인증 SavedPlaceInfo가 아닌 placeId로 가져오도록 수정
1winhyun 7a9f98f
refactor: OCR 인증 반환값에 paymentDate 추가
1winhyun 8feb4ea
refactor: 컨벤션 개행 처리
1winhyun 1c885fa
refactor: 리뷰 작성 example 변경
1224kang 44fd559
refactor: 제휴 장소 리뷰와 제휴 없는 장소 리뷰 작성에 대한 api 분리
1winhyun 6d65bad
refactor: PermitUrlConfig에 url 발급 추가
1winhyun d31d05e
refactor: getPartnershipPlaces size 파라미터 적용
1winhyun 9627414
refactor: 개행 처리 및 중복 메서드 분리
1winhyun 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
Some comments aren't visible on the classic Files Changed page.
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
25 changes: 25 additions & 0 deletions
25
...ain/java/com/campus/campus/domain/place/application/dto/response/PlaceDetailResponse.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,25 @@ | ||
| package com.campus.campus.domain.place.application.dto.response; | ||
|
|
||
| import java.util.List; | ||
|
|
||
| import com.campus.campus.domain.review.application.dto.response.SimpleReviewResponse; | ||
|
|
||
| public record PlaceDetailResponse( | ||
| boolean isPartnership, | ||
| Long placeId, | ||
| String placeKey, | ||
| String name, | ||
| String category, | ||
| String address, | ||
| Double latitude, | ||
| Double longitude, | ||
| boolean isLiked, | ||
| double star, | ||
| double distance, | ||
|
|
||
| //PlaceImg 이미지 받아오기 | ||
| List<String> imgUrls, | ||
| List<SimpleReviewResponse> reviews, | ||
| int reviewSize | ||
| ) implements PlaceDetailView { | ||
| } |
26 changes: 26 additions & 0 deletions
26
src/main/java/com/campus/campus/domain/place/application/dto/response/PlaceDetailView.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,26 @@ | ||
| package com.campus.campus.domain.place.application.dto.response; | ||
|
|
||
| public interface PlaceDetailView { | ||
|
|
||
| boolean isPartnership(); | ||
|
|
||
| Long placeId(); | ||
|
|
||
| String placeKey(); | ||
|
|
||
| String name(); | ||
|
|
||
| String category(); | ||
|
|
||
| String address(); | ||
|
|
||
| Double latitude(); | ||
|
|
||
| Double longitude(); | ||
|
|
||
| boolean isLiked(); | ||
|
|
||
| double star(); | ||
|
|
||
| double distance(); | ||
| } |
54 changes: 30 additions & 24 deletions
54
...onse/partnership/PartnershipResponse.java → ...artnership/PartnershipDetailResponse.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,24 +1,30 @@ | ||
| package com.campus.campus.domain.place.application.dto.response.partnership; | ||
|
|
||
| import java.time.LocalDate; | ||
| import java.util.List; | ||
|
|
||
| public record PartnershipResponse( | ||
| Long placeId, | ||
| String placeKey, | ||
| String name, | ||
| String category, | ||
| String address, | ||
| Double latitude, | ||
| Double longitude, | ||
| String tag, //(ex.) 총학생회, 사회과학대학, IT공학과 | ||
| boolean isLiked, | ||
| Double star, //리뷰 평점 | ||
| String partnerTitle, //제휴 제목 | ||
| double distance, //거리(m) | ||
| LocalDate endDate, //제휴 끝나는 시점 | ||
|
|
||
| //StudentCouncilPost 이미지 받아오기 | ||
| List<String> imgUrls | ||
| ) { | ||
| } | ||
| package com.campus.campus.domain.place.application.dto.response.partnership; | ||
|
|
||
| import java.time.LocalDate; | ||
| import java.util.List; | ||
|
|
||
| import com.campus.campus.domain.place.application.dto.response.PlaceDetailView; | ||
| import com.campus.campus.domain.review.application.dto.response.SimpleReviewResponse; | ||
|
|
||
| public record PartnershipDetailResponse( | ||
| boolean isPartnership, | ||
| Long placeId, | ||
| String placeKey, | ||
| String name, | ||
| String category, | ||
| String address, | ||
| Double latitude, | ||
| Double longitude, | ||
| String tag, //(ex.) 총학생회, 사회과학대학, IT공학과 | ||
| boolean isLiked, | ||
| double star, //리뷰 평점 | ||
| String partnerTitle, //제휴 제목 | ||
| double distance, //거리(m) | ||
| LocalDate endDate, //제휴 끝나는 시점 | ||
|
|
||
| //StudentCouncilPost 이미지 받아오기 | ||
| List<String> imgUrls, | ||
| List<SimpleReviewResponse> reviews, | ||
| int reviewSize | ||
| ) implements PlaceDetailView { | ||
| } |
9 changes: 9 additions & 0 deletions
9
...ampus/campus/domain/place/application/exception/AlreadySuggestedPartnershipException.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,9 @@ | ||
| package com.campus.campus.domain.place.application.exception; | ||
|
|
||
| import com.campus.campus.global.common.exception.ApplicationException; | ||
|
|
||
| public class AlreadySuggestedPartnershipException extends ApplicationException { | ||
| public AlreadySuggestedPartnershipException() { | ||
| super(ErrorCode.ALREADY_PARTNERSHIP_SUGGESTED); | ||
| } | ||
| } |
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.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: our-campUS/our-campUS-BE
Length of output: 150
🏁 Script executed:
Repository: our-campUS/our-campUS-BE
Length of output: 2017
🏁 Script executed:
Repository: our-campUS/our-campUS-BE
Length of output: 154
🏁 Script executed:
Repository: our-campUS/our-campUS-BE
Length of output: 5811
🏁 Script executed:
Repository: our-campUS/our-campUS-BE
Length of output: 3468
🏁 Script executed:
Repository: our-campUS/our-campUS-BE
Length of output: 3867
tag파라미터가councilName으로 전달되어council필드와 중복 발생ReviewService에서
tag에post.getWriter().getCouncilName()을 넘기고 있어, 현재toReviewPartnerResponse메서드 내에서 council 필드도 동일하게post.getWriter().getCouncilName()을 사용하므로 두 필드가 동일한 값을 갖습니다.resolveTag메서드가 학교/단과대/학과명을 올바르게 반환하도록 설계되었으므로, ReviewService의 호출부에서tag파라미터로resolveTag로직을 적용하거나 메서드 시그니처를 수정하여 의도에 맞는 태그 값을 전달하세요.🤖 Prompt for AI Agents