Skip to content

Conversation

@KJunseo
Copy link
Contributor

@KJunseo KJunseo commented Sep 6, 2022

Description

가게 상세 조회 유저별 좋아요 여부 판별

Trouble Shooting

ETC

@KJunseo KJunseo added backend 백엔드 issue bug 버그 관련 api api 관련 labels Sep 6, 2022
@KJunseo KJunseo self-assigned this Sep 6, 2022
Copy link
Contributor

@PyeongGangKim PyeongGangKim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

리뷰 하나 남겼어요~~확인 부탁드립니다

Comment on lines 44 to +48
@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
) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

login이 안되어 있을 경우 LoginMember가 null로 들어갈 거 같은데, 그 부분은 괜찮은건가요??

Copy link
Contributor Author

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
    ) {

Copy link
Contributor

@gomster96 gomster96 left a 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>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

흠 제가 여기서 new line을 안했었네요... 감사합니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api api 관련 backend 백엔드 issue bug 버그 관련

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants