-
Notifications
You must be signed in to change notification settings - Fork 2
가게 상세 조회 유저별 좋아요 여부 판별 #295
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
base: dev
Are you sure you want to change the base?
Conversation
PyeongGangKim
left a comment
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.
리뷰 하나 남겼어요~~확인 부탁드립니다
| @GetMapping("/shops/{id}") | ||
| public ResponseEntity<ShopResponse> searchShop(@PathVariable Long id) { | ||
| ShopResponseDto shopResponseDto = shopService.findOneById(id); | ||
| public ResponseEntity<ShopResponse> searchShop( | ||
| @Login LoginMember loginMember, | ||
| @PathVariable Long id | ||
| ) { |
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.
login이 안되어 있을 경우 LoginMember가 null로 들어갈 거 같은데, 그 부분은 괜찮은건가요??
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.
extract을 할 때 ""로 반환되고 유효하지 않다면 LoginMember.anonymous() 가 반환되어 괜찮을 거 같습니다
실제로 searchShops에서도 쓰고 있었습니다!
@GetMapping("/shops")
public ResponseEntity<List<ShopSimpleResponse>> searchShops(
@Login LoginMember loginMember,
@ModelAttribute ShopSearchRequest condition,
@PageableDefault Pageable pageable
) {
gomster96
left a comment
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.
수고하셨습니다.
| </root> | ||
| </springProfile> | ||
| </configuration> No newline at end of file | ||
| </configuration> |
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.
흠 제가 여기서 new line을 안했었네요... 감사합니다.
Description
가게 상세 조회 유저별 좋아요 여부 판별
Trouble Shooting
ETC