4-frame-photos-map / backend

네컷지도(전국 네컷사진관 정보 제공, 리뷰 공유 사이트) 백엔드 API 개발
6 stars 3 forks source link

#72 fix : brand 파라미터 존재하지 않을 시 null 처리하여 Optional로 작동하도록 #87

Closed zuminzi closed 1 year ago

zuminzi commented 1 year ago

목적

brand 파라미터 존재하지 않을 시 null 처리하여 Optional로 작동하도록

작업 상세

  • 수정 이전
  • /shops/brand?longitude=${longitude}&latitude=${latitude}&brand=
  • 전체 브랜드 조회 시에도 위와 같이 brand 파라미터가 아예 누락되지 않고 빈문자열로 존재해야 의도대로 전체 브랜드가 조회되었음
  • 수정 이후
  • /shops/brand?longitude=${longitude}&latitude=${latitude}
  • brand 파라미터가 Optional 될 수 있도록 처리
  • 아예 존재하지 않을 시(null) RequestBrandSearch의 brand 필드를 빈문자열("")로 초기화하여 카카오맵 조회 API 요청