Skip to content

Commit

Permalink
[Chore] #283 - 메소드 네이밍 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
parkrootseok committed Jun 19, 2023
1 parent e16e63c commit 9982214
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public CafeUpdateOutDTO createCafe(Long masterId, CafeCreateInDTO cafeReq, List<
throws JsonProcessingException {

// 좌표와 도로명 주소 받기
Coordinate coordinate = coordinateService.getCoordinate(cafeReq);
Coordinate coordinate = coordinateService.createCoordinate(cafeReq);

// 카페 생성
Cafe cafe = Cafe.builder()
Expand Down Expand Up @@ -159,7 +159,7 @@ public List<List<CafeListOutDTO>> findCafesByName(String name, Long userId, Stri
public CafeUpdateOutDTO updateCafe(Long cafeId, Long masterId, CafeCreateInDTO cafeReq)
throws CafeException, JsonProcessingException {

Coordinate coordinate = coordinateService.getCoordinate(cafeReq);
Coordinate coordinate = coordinateService.createCoordinate(cafeReq);

Cafe cafe = cafeRepository.findById(cafeId).orElseThrow(() -> new CafeException(NOT_EXIST_CAFE));
Master master = masterRepository.findById(masterId)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class CoordinateService {
private String baseUrl = "https://dapi.kakao.com";
private String uri = "/v2/local/search/address.json";

public Coordinate getCoordinate(CafeCreateInDTO cafeReq) throws JsonProcessingException {
public Coordinate createCoordinate(CafeCreateInDTO cafeReq) throws JsonProcessingException {
ExtKakaoCoordinateOutDTO extKakaoCoordinateOutDTO = getCoordinateFromAddress(cafeReq.getAddress());
Coordinate coordinate = Coordinate.builder()
.longitude(extKakaoCoordinateOutDTO.getDocuments().get(0).getLongitude())
Expand Down

0 comments on commit 9982214

Please sign in to comment.