-
Notifications
You must be signed in to change notification settings - Fork 1
refactor/SW-22/Back(likes) - ikebookmark 테이블을 likes로 변경 #17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,6 +4,7 @@ | |
| import com.web.SearchWeb.board.domain.Board; | ||
| import com.web.SearchWeb.board.dto.BoardDto; | ||
| import com.web.SearchWeb.comment.service.CommentService; | ||
| import com.web.SearchWeb.likes.service.LikesService; | ||
| import com.web.SearchWeb.member.service.MemberService; | ||
| import org.springframework.beans.factory.annotation.Autowired; | ||
| import org.springframework.stereotype.Service; | ||
|
|
@@ -18,14 +19,14 @@ public class BoardService { | |
|
|
||
| private final BoardDao boardDao; | ||
| private final MemberService memberService; | ||
| private final LikeBookmarkService likeBookmarkService; | ||
| private final LikesService likesService; | ||
| private final CommentService commentService; | ||
|
|
||
| @Autowired | ||
| public BoardService(BoardDao boardDao, MemberService memberService, LikeBookmarkService likeBookmarkService, CommentService commentService) { | ||
| public BoardService(BoardDao boardDao, MemberService memberService, LikesService likesService, CommentService commentService) { | ||
| this.boardDao = boardDao; | ||
| this.memberService = memberService; | ||
| this.likeBookmarkService = likeBookmarkService; | ||
| this.likesService = likesService; | ||
| this.commentService = commentService; | ||
| } | ||
|
Comment on lines
+22
to
31
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: # First, let's get the full content of BoardService.java to understand all its methods
wc -l src/main/java/com/web/SearchWeb/board/service/BoardService.javaRepository: Searchweb-Dev/Searchweb-Back Length of output: 139 🏁 Script executed: # Search for all usages of likesService in BoardService
rg -n 'likesService' src/main/java/com/web/SearchWeb/board/service/BoardService.javaRepository: Searchweb-Dev/Searchweb-Back Length of output: 299 🏁 Script executed: # Read the full BoardService.java file
cat -n src/main/java/com/web/SearchWeb/board/service/BoardService.javaRepository: Searchweb-Dev/Searchweb-Back Length of output: 5090
🤖 Prompt for AI Agents |
||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧹 Nitpick | 🔵 Trivial
필드 네이밍 컨벤션 불일치
새로운 필드
likesService는 camelCase를 올바르게 사용하고 있지만, 기존 필드들(boardservice,memberservice)과 네이밍 컨벤션이 일치하지 않습니다. Java 표준 컨벤션은 camelCase(boardService,memberService)를 권장합니다.현재 리팩토링 범위 외이지만, 향후 코드 일관성을 위해 기존 필드명도 camelCase로 통일하는 것을 고려해 주세요.
🤖 Prompt for AI Agents