Skip to content

[FEAT/#33] 가게 상세 조회 API 연동 - #37

Merged
byul0227 merged 11 commits into
developfrom
feat/#33-store-api
Nov 20, 2026
Merged

byul0227 merged 11 commits into
developfrom
feat/#33-store-api

Conversation

@byul0227

@byul0227 byul0227 commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

Related issue 🛠

Work Description ✏️

  • 가게 상세 조회 API (GET /api/v1/stores/{storeId}) 연동
  • StoreDetailResponseDto, StoreService 추가
  • StoreDetailModel, StoreDetailMapper 추가
  • StoreRepository, GetStoreDetailUseCase 추가
  • StoreViewModel에서 더미 데이터 대신 서버 데이터를 UiModel로 변환해서 사용하도록 수정

Screenshot 📸

KakaoTalk_20261118_195416610.mp4

To Reviewers 📢

  • 메뉴 가격은 화면에서 "9,000"처럼 보여주려고 StoreUiModelMapper에서 콤마 넣어서 변환했어요!
  • userCount, maxReservationCount, 탭 개수는 API에 없어서 ViewModel에 고정값으로 두었습니다
  • 잘 몰라서 승혁님 코드 많이 참고했어요 ... 정말 감사합니다 땡큐 ... 그리고 미리 폴더 만들어준 은지에게도 정말 땡큐 ..

@byul0227 byul0227 self-assigned this Nov 18, 2026
@byul0227 byul0227 added ✨ FEAT 새로운 기능 구현 🧑‍🎨 별 labels Nov 18, 2026

@chldmswll chldmswll left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

너무 잘해서 리뷰 달게 없군....... 진짜 항상 빠르게 PR 올려줘서 너무 감사합니다... 언니는 정말 짱이야,,ㅎㅎ 언니 코드 보면서 많이 배웠어요!!

Comment on lines +24 to +25
id = menu.menuId.toInt(),
storeId = storeId.toInt(),

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

P2 : API 명세에서는 menuId와 storeId를 Long으로 받아오는데, UiModel에서는 타입이 Int라서 여기서 toInt()로 바꿔주고 있는 것 같아요! toInt()로 줄이면 값이 커졌을 때 잘릴 수도 있어서, 혹시 Int로 둔 이유가 따로 없다면 UiModel 타입도 명세에 맞춰 Long으로 맞춰주는 건 어떨까요?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

반영했습니다!! UiModel 타입도 명세에 맞춰서 Long으로 바꿨어요

businessHours = businessHours,
phone = phone,
imageUrls = imageUrls,
representativeMenus = representativeMenus.map { it.toModel() },

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

P2 : 응답에 displayOrder가 있는데 정렬 없이 그대로 매핑하고 있어요! 서버가 항상 순서대로 내려주긴 하지만, 확실히 하기 위해서 sortedBy { it.displayOrder } 한 번 걸어주면 안전할 것 같은데 어떻게 생각하시나요?

@byul0227 byul0227 Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

좋은 의견 감사해여 sortedBy { it.displayOrder } 추가해서 순서 보장되도록 했습니당

storeId = storeId.toInt(),
imgUrl = menu.imageUrl,
name = menu.name,
price = "%,d".format(menu.price),

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

P3 : 이건 정말 사소한 거긴 한데, String.format은 기기 Locale을 따라가서, 언어 설정에 따라 구분자가 , 대신 .이나 공백으로 나올 수도 있어요! %,d".format(Locale.KOREA, menu.price)처럼 Locale을 고정해보는 건 어떨까요?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

오 이렇게도 할 수 있군요 ㅎㅎ Locale.KOREA로 고정했습니당

content = amenity.content,
)
},
) No newline at end of file

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

P2 : 그리고 여기 지금 캡처같은 아이콘이 보이시나여? 이부분 서현언니가 아티클 적어줬는데 보고 반영해주면 좋을 것 같아용!
아티클 링크!!

image

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

아티클 보고 반영했습니다 ㅎㅎ

@kimseunghyeok kimseunghyeok left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

image

API 연동 너무 깔끔합니다!! UI 관련해서 리뷰만 남겨둘게요!!

p2) 지금 가게 이미지가 1개라서 view가 어색합니다. 해당 부분 서버분에게 요청드려서 이미지 추가해주실 수 있는지 여쭤봅시다.

image

p3) 현재 시간이 영업중 시간이라면 view에 영업중이 뜨도록 하는 로직 추가는 어때요?

현재 view
image

피그마 view
image

@shinisme shinisme left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

정말 정말 수고많으셨어용 졸전하느라 바쁜데!!!! ㅠㅠㅠ 정말 큰 도움 받은 코드였습니다 ㅎㅎ따라하면서 많이 배웠어용
image

Comment on lines +14 to +16
override suspend fun getStoreDetail(storeId: Long): Result<StoreDetailModel> =
suspendRunCatching {
storeService.getStoreDetail(storeId).getDataOrThrow().toModel()

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

service->repository->usecase->viewmodel흐름 맞춰져있어서 읽기 편했어요!!! 저도 이렇게 따라했습니당 ㅎㅎ...

@byul0227

Copy link
Copy Markdown
Collaborator Author

승혁님 코드에 댓글 달 수 없음 이슈로...
p2용 답글: 저도 서버에서 이미지가 1개만 내려와서 어색하다고 생각해서 물어봐야하나 생각했었어여 .. 서버분께 이미지 추가 가능한지 여쭤보도록 하겠습니당
p3용 답글: 좋은 의견 감사합니당 서버에서 내려주는 영업시간 기준으로 현재 시간이 영업 중이면 "영업 중"이 뜨도록 추가했어요!

@chldmswll chldmswll left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

image

API 연결하면서 영업중 로직도 추가하고, 더미데이터 사진 추가 요청까지!! 진짜 너무 꼼꼼하다!!!
완전 수고하셨슴당 ☆*: .。. o(≧▽≦)o .。.:*☆

@byul0227
byul0227 merged commit ea2e200 into develop Nov 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨ FEAT 새로운 기능 구현 🧑‍🎨 별

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT] 가게 상세 조회 API 연동

4 participants