KIMJINOH97 / Hotplace-map

졸업프로젝트를 위한 레포지토리
1 stars 1 forks source link

[BACK] 북마크 기능 구현 #107

Closed WHO-A-U closed 2 years ago

WHO-A-U commented 2 years ago

북마크 기능 구현

1.rest-api 누락된 정보 추가 b8c0d59 resolve #100

image

public PlaceResponse(Place place){
        this.id = place.getId();  // new
        this.roadAddress = place.getRoadAddress();  // new
        this.phoneNumber = place.getPhoneNumber();  // new
        this.name = place.getName();
        this.address = place.getAddress();
        this.longitudeX = place.getLongitudeX();
        this.latitudeY = place.getLatitudeY();
        this.naverStar = place.getNaverStar();
        this.kakaoStar = place.getKakaoStar();
        this.instagramHashtag = place.getInstagramHashtag();
        this.naverBlogReview = place.getNaverBlogReview();  // new
        this.naverBuyerReview = place.getNaverBuyerReview();  // new
        this.naverUrl = place.getNaverUrl();
        this.kakaoUrl = place.getKakaoUrl();
        this.instagramUrl = place.getInstagramUrl();
        this.homepageUrl = place.getHomepageUrl();
    }

2.북마크 기능 추가 9b619e4 resolve #78

기능 METHOD url request response
북마크 하기 POST localhost:8080/user/bookmark/{id} token , {id} PlaceResponse.java
내가 한 북마크 가져오기 GET localhost:8080/user/bookmark token PlaceResponse.java

예외처리 내용

북마크 하기