ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • 2022.07.08 사이드 프로젝트(ChargerPin) 즐겨찾기 기능 구현 준비
    Side Project 2022. 7. 8. 02:18
    반응형

    사이드 프로젝트(ChargerPin project)

    프로젝트 진행 중입니다.

     

    구현할 기능들

    • 회원가입/로그인 (제작 완료)
    • 전기차 충전소 검색
    • 전기차 충전소 조회
    • 전기차 충전소 즐겨찾기(준비 중)
    • 즐겨찾기 조회
    • 즐겨찾기 삭제
    • 전기차 충전소 상세조회

    오늘 구현한 기능

    오늘은 전기차 충전소 즐겨찾기 기능을 구현하기 위해 BookmarkController, BookmarkService(BookmarkServiceImpl), BookmarkRequest, BookmarkResponse 등의 파일을 제작하고 준비하였습니다.

     

    그리고 UserBookmarkChargerRepository에 생성될 때 생기는 userId로 조회하는 메서드인 findByUserId를 만들어주고 테스트했습니다.

     

    테스트 결과

    =========================================
    UserBookmarkChargerEntity(bookmarkId=1, chargerName=bookmark1, userId=TestSample99)
    UserBookmarkChargerEntity(bookmarkId=2, chargerName=bookmark2, userId=TestSample99)
    UserBookmarkChargerEntity(bookmarkId=3, chargerName=bookmark3, userId=TestSample99)
    UserBookmarkChargerEntity(bookmarkId=4, chargerName=bookmark4, userId=TestSample99)
    UserBookmarkChargerEntity(bookmarkId=5, chargerName=bookmark5, userId=TestSample99)
    UserBookmarkChargerEntity(bookmarkId=6, chargerName=bookmark6, userId=TestSample99)
    UserBookmarkChargerEntity(bookmarkId=7, chargerName=bookmark7, userId=TestSample99)
    UserBookmarkChargerEntity(bookmarkId=8, chargerName=bookmark8, userId=TestSample99)
    UserBookmarkChargerEntity(bookmarkId=9, chargerName=bookmark9, userId=TestSample99)
    UserBookmarkChargerEntity(bookmarkId=10, chargerName=bookmark10, userId=TestSample99)
    UserBookmarkChargerEntity(bookmarkId=11, chargerName=bookmark11, userId=TestSample99)
    // 중략
    UserBookmarkChargerEntity(bookmarkId=99, chargerName=bookmark99, userId=TestSample99)

     

    다음 구현할 기능

    이제 오늘 제작해준 것들을 바탕으로 본격적인 즐겨찾기 기능을 구현하려고 합니다.

     

    마치며

    오늘은 행복한 금요일이기 때문에 그냥 준비만 하고 끝냈습니다 :)

    이번 주도 정말 수고 많았던 것 같습니다 ㅋㅋㅋ

    주말 쉬고 또 재충전해서 돌아오겠습니다.

    감사합니다!

    반응형

    댓글

Designed by Tistory.