Skip to content

Commit

Permalink
Building 위경도 정보 같이 내려주기 (#233)
Browse files Browse the repository at this point in the history
* add latlng

* fix build
  • Loading branch information
sanggggg authored Mar 3, 2024
1 parent 2745aa8 commit 429762e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,9 @@ components:
address:
type: string
description: 건물의 human-readable한 주소.
location:
$ref: '#/components/schemas/Location'
description: 건물의 위경도.
required:
- id
- address
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package club.staircrusher.place_search.infra.adapter.`in`.controller

import club.staircrusher.api.converter.toDTO
import club.staircrusher.api.spec.dto.PlaceCategoryDto
import club.staircrusher.api.spec.dto.PlaceListItem
import club.staircrusher.place.domain.model.Building
Expand All @@ -15,6 +16,7 @@ fun Place.toDTO() = club.staircrusher.api.spec.dto.Place(
fun Building.toDTO() = club.staircrusher.api.spec.dto.Building(
id = id,
address = address.toString(),
location = location.toDTO(),
)

fun PlaceSearchService.SearchPlacesResult.toDTO() = PlaceListItem(
Expand Down

0 comments on commit 429762e

Please sign in to comment.