-
Notifications
You must be signed in to change notification settings - Fork 0
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
feature: 상품입양 후기 작성 api #127
The head ref may contain hidden characters: "125-feature-\uC0C1\uD488\uC785\uC591-\uD6C4\uAE30-\uC791\uC131"
Conversation
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.
👍👍 꼼꼼한 코드 최고에요
src/main/kotlin/com/petqua/application/product/review/ProductReviewImageUploader.kt
Show resolved
Hide resolved
src/main/kotlin/com/petqua/application/product/review/ProductReviewImageUploader.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/com/petqua/presentation/product/ProductReviewController.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/com/petqua/common/converter/MultipartJackson2HttpMessageConverter.kt
Show resolved
Hide resolved
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.
고생하셨습니다!
코드가 깔끔하네요..!
몇가지 코멘트 남겼습니다!
src/main/kotlin/com/petqua/application/image/ImageStorageService.kt
Outdated
Show resolved
Hide resolved
val pathIndex = storedUrl.indexOf("/$path") | ||
return "$domain${storedUrl.substring(pathIndex)}" |
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.
이미지 경로에 대한 조작이 여러번 발생하는데, 주석으로 예시를 들어주실 수 있나요?
storedUrl -> pathIndex -> $domain + ${storedUrl에서 자른 문자열} 과정
-> https://s3.amazonaws.com/my-imgae/myfolder/image.png
-> 도메인이 끝나는 지점의 인덱스 (com
)
-> domain + /my-imgae/myfolder/image.png
=> petqua.com/my-imgae/myfolder/image.png
이런과정이죠?
아니면 이미지경로를 만드는 역할을 분리해도 좋아보입니다.
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.
주석으로 예시를 달아두었습니다! 그리고 이미지 경로를 변환하는 책임을 지는 객체를 하나 추가해두었습니다.
예시는 말씀하신 바와 정확히 일치합니다!
src/test/kotlin/com/petqua/application/product/review/ProductReviewFacadeServiceTest.kt
Outdated
Show resolved
Hide resolved
ec0b55b
to
085c182
Compare
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.
시험기간에도 고생많으십니다......!!! 어프루브 🌈🚀
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.
의견 남겨주신 부분들과 리뷰 반영도 확인했습니다!
고생 많으셨어요~!👍👍
📌 관련 이슈
📁 작업 설명
📸 작업화면
설명