From b05e663f64cdd2e35d5e06a87714cc6b71112880 Mon Sep 17 00:00:00 2001 From: xorwns118 Date: Fri, 26 Jul 2024 12:48:58 +0900 Subject: [PATCH] =?UTF-8?q?[#68]=20fix:=20readme=20=EC=88=98=EC=A0=95=20?= =?UTF-8?q?=EB=B0=8F=20Controller=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Readme.md | 77 ++++++++++++------- .../movie/controller/MovieRestController.java | 30 ++++++-- .../movie/controller/TMDBRestController.java | 38 --------- 3 files changed, 73 insertions(+), 72 deletions(-) delete mode 100644 src/main/java/com/hackathonteam2/recomovie/movie/controller/TMDBRestController.java diff --git a/Readme.md b/Readme.md index 12291d1..e047ee8 100644 --- a/Readme.md +++ b/Readme.md @@ -1,6 +1,6 @@ ![3333](https://github.com/user-attachments/assets/bd85cf00-5ed0-403d-87f2-9b4918a698b9) -## 프로젝트 소개 +# 프로젝트 소개 ### 주제 영화 리뷰 사이트 @@ -9,19 +9,55 @@ - 좋은 영화관을 골라 가고 싶은 사람 - 영화를 보기 전 후기가 궁금한 사람 +--- +## Notion Link +- [RecoMovie Notion Page](https://sincere-nova-ec6.notion.site/2-7141ab0b81eb4688a8ad036347160bfe?pvs=4) + +--- +## 기술 스택 + + + +
+ + + + +--- +## DB + + + +--- +## IDE + + +--- +## 협업 도구 + +
+ + + + +--- +## 개발 환경 +
+ +--- ## Contributors -- 팀장: 이재윤 -- 1~3일차 팀원: 박수형, 이선우 -- 3~5일차 팀원: 김택준, 송해덕, 임건우 +- 팀장: `이재윤` +- 1~3일차 팀원: `박수형`, `이선우` +- 3~5일차 팀원: `김택준`, `송해덕`, `임건우` ## 산출물 ### 요구사항 명세서 -[요구사항 명세서](https://www.notion.so/5b1bea76bd5c49c280c7472352d75fc9?pvs=4) +- [요구사항 명세서](https://www.notion.so/5b1bea76bd5c49c280c7472352d75fc9?pvs=4) ### API 명세서 -[API 명세서](https://www.notion.so/API-d758465568984406b4125c7d4f64fe42?pvs=4) +- [API 명세서](https://www.notion.so/API-d758465568984406b4125c7d4f64fe42?pvs=4) ### ERD ![스크린샷 2024-07-25 오후 8 51 09](https://github.com/user-attachments/assets/4c30489f-9246-470c-baeb-19af0495f35e) @@ -34,35 +70,22 @@ Register +--- +### 메인 페이지 + +--- ### 마이 페이지 My Page -### 메인 페이지 -Main Page - +--- ### 리뷰 페이지 Review Page - +--- ## 시스템 아키텍처 -![스크린샷 2024-07-25 오후 8 57 46](https://github.com/user-attachments/assets/4129f569-c670-486d-ba45-99d8c6160da2) - - - -## 협업 도구 - -- ERD Cloud -- Figma -- Github -- Notion - - -## 기술 스택 +System architecture -- Spring Boot 3 -- Spring Data JPA -- Thymeleaf -- MariaDB 11.42 +--- ## 마무리 diff --git a/src/main/java/com/hackathonteam2/recomovie/movie/controller/MovieRestController.java b/src/main/java/com/hackathonteam2/recomovie/movie/controller/MovieRestController.java index 590df11..83e29e7 100644 --- a/src/main/java/com/hackathonteam2/recomovie/movie/controller/MovieRestController.java +++ b/src/main/java/com/hackathonteam2/recomovie/movie/controller/MovieRestController.java @@ -1,22 +1,38 @@ package com.hackathonteam2.recomovie.movie.controller; +import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; -import com.hackathonteam2.recomovie.movie.service.MovieService; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.hackathonteam2.recomovie.movie.dto.NowPlayingResponse; +import com.hackathonteam2.recomovie.movie.dto.TMDBDetailsDto; +import com.hackathonteam2.recomovie.movie.service.TMDBService; import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +@Slf4j @RestController @RequiredArgsConstructor -@RequestMapping("/movie") +@RequestMapping("/tmdb") public class MovieRestController { - private final MovieService movieService; + private final TMDBService tmdbService; - // @GetMapping("/search") - // public List search(@RequestParam(name = "keyword") String keyword) { - // return movieService.search(keyword); - // } + @GetMapping("/nowPlaying") + public String getNowPlaying(@RequestParam int pageNum) throws JsonProcessingException { + NowPlayingResponse nowPlayingResponse = tmdbService.getNowPlaying(pageNum); + return "pageName"; + } + + @GetMapping("/details") + public String getDetails(@RequestParam Long movieId) throws JsonProcessingException { + + TMDBDetailsDto tmdbDetailsDto = tmdbService.getDetails(movieId); + + return "test"; + } } diff --git a/src/main/java/com/hackathonteam2/recomovie/movie/controller/TMDBRestController.java b/src/main/java/com/hackathonteam2/recomovie/movie/controller/TMDBRestController.java deleted file mode 100644 index c5cf008..0000000 --- a/src/main/java/com/hackathonteam2/recomovie/movie/controller/TMDBRestController.java +++ /dev/null @@ -1,38 +0,0 @@ -package com.hackathonteam2.recomovie.movie.controller; - -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.RestController; - -import com.fasterxml.jackson.core.JsonProcessingException; -import com.hackathonteam2.recomovie.movie.dto.NowPlayingResponse; -import com.hackathonteam2.recomovie.movie.dto.TMDBDetailsDto; -import com.hackathonteam2.recomovie.movie.service.TMDBService; - -import lombok.RequiredArgsConstructor; -import lombok.extern.slf4j.Slf4j; - -@Slf4j -@RestController -@RequiredArgsConstructor -@RequestMapping("/tmdb") -public class TMDBRestController { - - private final TMDBService tmdbService; - - @GetMapping("/nowPlaying") - public String getNowPlaying(@RequestParam int pageNum) throws JsonProcessingException { - NowPlayingResponse nowPlayingResponse = tmdbService.getNowPlaying(pageNum); - - return "pageName"; - } - - @GetMapping("/details") - public String getDetails(@RequestParam Long movieId) throws JsonProcessingException { - - TMDBDetailsDto tmdbDetailsDto = tmdbService.getDetails(movieId); - - return "test"; - } -}