Skip to content

Conversation

@nayonsoso
Copy link
Collaborator

관련 이슈

작업 내용

  1. '좋아요한'을 의미하는 단어를 liked로 용어 통일합니다
  2. 소식지 좋아요를 구현하며, 팀 내에서 논의된 내용을 ‘대학지원정보 좋아요’에도 적용합니다.
image

특이 사항

getLikedUnivApplyInfos() 함수가 MyPageService에 선언되어있더라고요.
아마 그걸 구현하는 당시의 저는 (약 1년 전...) 페이지의 관점에서 API를 생각했던 것 같은데
이건 LikedUnivApplyInfo 라는 도메인에 관련된 것이니 위치를 UnivApplyInfoLikeService 하위로 옮기려 합니다.
여기에 대해 의견 부탁드립니다. 🙇🏻‍♀️

리뷰 요구사항 (선택)

@coderabbitai
Copy link

coderabbitai bot commented Jul 10, 2025

Walkthrough

  1. 서비스 및 메서드 구조 변경

    • MyPageService에서 관심 대학 지원 정보 조회 메서드(getWishUnivApplyInfo)가 삭제되었습니다.
    • UnivApplyInfoLikeService가 LikedUnivApplyInfoService로 이름이 변경되고, 관련 메서드들도 addUnivApplyInfoLike, cancelUnivApplyInfoLike 등으로 명확하게 리네이밍되었습니다.
    • LikedUnivApplyInfoService에 사용자가 좋아요한 대학 지원 정보 목록을 조회하는 getLikedUnivApplyInfos 메서드가 새로 추가되었습니다.
  2. 컨트롤러 리팩토링 및 엔드포인트 명확화

    • UnivApplyInfoController에서 "wish" 관련 용어가 모두 "like"로 통일되어 메서드 및 엔드포인트 이름이 변경되었습니다.
    • 좋아요 추가 및 취소 엔드포인트의 반환 타입이 ResponseEntity로 변경되어, 더 이상 별도의 응답 메시지를 반환하지 않습니다.
    • 관련 서비스 호출 역시 새로 리네이밍된 LikedUnivApplyInfoService의 메서드를 사용하도록 변경되었습니다.
  3. 테스트 코드 정비

    • MyPageServiceTest에서 관심 대학 지원 정보 목록 조회 테스트가 삭제되었습니다.
    • LikedUnivApplyInfoServiceTest(구 UnivApplyInfoLikeServiceTest)로 클래스명이 변경되었고, 서비스 메서드명 변경에 따라 테스트 코드도 일관성 있게 수정되었습니다.
    • 관심 대학 지원 정보 목록 조회에 대한 새로운 테스트가 추가되어, 사용자가 좋아요한 정보 목록을 올바르게 반환하는지 검증합니다.

Suggested reviewers

  • wibaek
  • Gyuhyeok99

📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 4148ecf and 33775ca.

📒 Files selected for processing (5)
  • src/main/java/com/example/solidconnection/siteuser/service/MyPageService.java (1 hunks)
  • src/main/java/com/example/solidconnection/university/controller/UnivApplyInfoController.java (3 hunks)
  • src/main/java/com/example/solidconnection/university/service/LikedUnivApplyInfoService.java (3 hunks)
  • src/test/java/com/example/solidconnection/siteuser/service/MyPageServiceTest.java (1 hunks)
  • src/test/java/com/example/solidconnection/university/service/LikedUnivApplyInfoServiceTest.java (6 hunks)
🚧 Files skipped from review as they are similar to previous changes (3)
  • src/test/java/com/example/solidconnection/siteuser/service/MyPageServiceTest.java
  • src/main/java/com/example/solidconnection/siteuser/service/MyPageService.java
  • src/main/java/com/example/solidconnection/university/controller/UnivApplyInfoController.java
🧰 Additional context used
🧠 Learnings (1)
📓 Common learnings
Learnt from: nayonsoso
PR: solid-connection/solid-connect-server#375
File: src/main/java/com/example/solidconnection/mentor/service/MentorMyPageService.java:47-53
Timestamp: 2025-07-05T17:54:42.475Z
Learning: MentorMyPageService에서 PUT 메서드 구현 시 전체 채널을 새로 생성하여 교체하는 방식을 사용하는 것이 PUT의 의미론적 특성과 일치하며, 트랜잭션 로킹 관점에서도 합리적인 접근이다.
🧬 Code Graph Analysis (1)
src/main/java/com/example/solidconnection/university/service/LikedUnivApplyInfoService.java (1)
src/main/java/com/example/solidconnection/university/controller/UnivApplyInfoController.java (1)
  • RequiredArgsConstructor (25-101)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: build
🔇 Additional comments (10)
src/main/java/com/example/solidconnection/university/service/LikedUnivApplyInfoService.java (6)

8-9: 새로운 DTO import 추가 확인됨

UnivApplyInfoPreviewResponse import가 새로 추가된 getLikedUnivApplyInfos 메서드에서 사용되기 위해 추가되었습니다. 적절한 변경사항입니다.


24-24: 서비스 클래스명 변경이 명확성을 높임

UnivApplyInfoLikeService에서 LikedUnivApplyInfoService로 변경된 것이 도메인의 의미를 더 명확하게 표현합니다. '좋아요'한 정보를 다루는 서비스임을 더 직관적으로 알 수 있습니다.


32-41: 새로운 조회 메서드 구현이 적절함

  1. 도메인 책임 분리: MyPageService에서 이 메서드를 이동시킨 것이 올바른 판단입니다. 좋아요 관련 로직은 LikedUnivApplyInfoService에 집중되어야 합니다.

  2. 메서드 구현:

    • @Transactional(readOnly = true) 적용으로 읽기 전용 트랜잭션 최적화
    • Stream API를 활용한 DTO 변환
    • 적절한 메서드명과 주석
  3. 반환 타입: List<UnivApplyInfoPreviewResponse>로 일관된 DTO 사용


47-47: 메서드명 개선과 반환 타입 단순화

likeUnivApplyInfo에서 addUnivApplyInfoLike로 변경된 것이 더 명확한 액션을 표현합니다. 또한 void 반환으로 단순화된 것도 REST API 설계 관점에서 적절합니다.


66-66: 일관된 메서드명 패턴 적용

cancelLikeUnivApplyInfo에서 cancelUnivApplyInfoLike로 변경하여 addcancel 메서드 간의 네이밍 일관성을 맞춘 점이 좋습니다.


81-81: 더 명확한 메서드명으로 개선

getIsLiked에서 isUnivApplyInfoLiked로 변경하여 메서드의 목적과 반환값을 더 명확하게 표현했습니다. boolean 반환 메서드는 is로 시작하는 것이 컨벤션에 부합합니다.

src/test/java/com/example/solidconnection/university/service/LikedUnivApplyInfoServiceTest.java (4)

29-32: 테스트 클래스 리팩토링이 서비스 변경과 일치

클래스명과 서비스 필드가 새로운 서비스명에 맞게 올바르게 업데이트되었습니다.


52-66: 새로운 조회 기능에 대한 테스트 커버리지 추가

  1. 테스트 시나리오:

    • 여러 개의 좋아요한 대학 정보를 설정하고 조회하는 적절한 시나리오
  2. 검증 로직:

    • containsExactlyInAnyOrder를 사용하여 순서에 관계없이 올바른 데이터가 반환되는지 확인
    • ID 추출을 통한 정확한 매칭 검증
  3. 테스트 데이터:

    • 메이지대학과 그라츠대학 두 개의 서로 다른 데이터로 테스트

잘 구현된 테스트입니다.


74-74: 모든 테스트 메서드 호출이 새로운 서비스 메서드명으로 올바르게 업데이트됨

기존 테스트들이 새로운 메서드명(addUnivApplyInfoLike, cancelUnivApplyInfoLike, isUnivApplyInfoLiked)에 맞게 일관되게 업데이트되었습니다.

Also applies to: 88-88, 103-103, 114-114, 126-126, 137-137, 146-146, 158-158


163-163: 헬퍼 메서드명이 더 명확하게 개선됨

saveLikedUniversity에서 saveLikedUnivApplyInfo로 변경하여 실제 저장하는 엔티티(LikedUnivApplyInfo)와 일치하도록 개선되었습니다.

✨ Finishing Touches
  • 📝 Generate Docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (2)
src/main/java/com/example/solidconnection/siteuser/service/MyPageService.java (2)

94-97: 메서드명 변경은 적절하지만 주석도 함께 업데이트가 필요합니다.

  1. 메서드명이 getWishUnivApplyInfo에서 getLikedUnivApplyInfos로 적절히 변경되었습니다.
  2. 하지만 주석(94번 라인)이 여전히 "관심 대학교"라는 표현을 사용하고 있어 새로운 용어와 일치하지 않습니다.

다음과 같이 주석을 수정하는 것을 제안합니다:

-    /*
-     * 관심 대학교 목록을 조회한다.
-     * */
+    /*
+     * 좋아요한 대학교 지원 정보 목록을 조회한다.
+     * */

97-103: 서비스 메서드 위치에 대한 아키텍처 검토가 필요합니다.

PR 설명에서 언급하신 대로, 이 메서드를 UnivApplyInfoLikeService로 이동하는 것이 도메인 관점에서 더 적절할 수 있습니다.

다음 사항들을 고려해보시기 바랍니다:
1. 도메인 일관성: 좋아요 관련 로직은 UnivApplyInfoLikeService에 집중되는 것이 Single Responsibility Principle에 부합합니다.
2. 의존성 관리: 현재 MyPageServiceLikedUnivApplyInfoRepository에 직접 의존하고 있는데, 이를 서비스 레이어를 통해 접근하는 것이 더 깔끔합니다.
3. 재사용성: 다른 컨텍스트에서도 좋아요한 정보 목록이 필요할 경우 도메인 서비스에 있는 것이 유리합니다.

메서드 이동을 고려해보시길 권장합니다.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between bfa7ba7 and 4148ecf.

📒 Files selected for processing (5)
  • src/main/java/com/example/solidconnection/siteuser/service/MyPageService.java (1 hunks)
  • src/main/java/com/example/solidconnection/university/controller/UnivApplyInfoController.java (1 hunks)
  • src/main/java/com/example/solidconnection/university/service/UnivApplyInfoLikeService.java (4 hunks)
  • src/test/java/com/example/solidconnection/siteuser/service/MyPageServiceTest.java (1 hunks)
  • src/test/java/com/example/solidconnection/university/service/UnivApplyInfoLikeServiceTest.java (6 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: build
🔇 Additional comments (8)
src/test/java/com/example/solidconnection/siteuser/service/MyPageServiceTest.java (1)

100-100: 테스트 메서드 호출이 올바르게 업데이트되었습니다.

서비스 메서드 이름 변경에 맞춰 테스트가 적절히 수정되었습니다. 테스트 로직과 검증 부분은 그대로 유지되어 기능적 일관성이 보장됩니다.

src/test/java/com/example/solidconnection/university/service/UnivApplyInfoLikeServiceTest.java (1)

55-55: 테스트 메서드 호출들이 일관되게 업데이트되었습니다.

  1. 서비스 메서드 호출이 새로운 명명 규칙에 맞춰 정확히 변경되었습니다:

    • likeUnivApplyInfoaddUnivApplyInfoLike
    • cancelLikeUnivApplyInfocancelUnivApplyInfoLike
    • getIsLikedisUnivApplyInfoLiked
  2. 헬퍼 메서드명도 saveLikedUniversity에서 saveLikedUnivApplyInfo로 개선되어 더욱 명확해졌습니다.

  3. 모든 테스트가 기능적 일관성을 유지하면서 새로운 명명 규칙을 따르고 있습니다.

Also applies to: 66-66, 69-69, 81-81, 84-84, 107-107, 115-115, 118-118, 127-127, 139-139, 144-144

src/main/java/com/example/solidconnection/university/service/UnivApplyInfoLikeService.java (3)

34-47: 좋아요 추가 메서드가 적절히 단순화되었습니다.

  1. 메서드명이 likeUnivApplyInfo에서 addUnivApplyInfoLike로 변경되어 의도가 더 명확해졌습니다.
  2. 반환 타입을 void로 변경하여 API가 단순화되었고, 불필요한 응답 래퍼 객체가 제거되었습니다.
  3. 핵심 로직은 그대로 유지되어 기능적 일관성이 보장됩니다.

53-62: 좋아요 취소 메서드도 일관되게 개선되었습니다.

  1. 메서드명이 cancelLikeUnivApplyInfo에서 cancelUnivApplyInfoLike로 변경되어 명명 일관성이 향상되었습니다.
  2. 반환 타입 단순화로 클라이언트 코드가 더 깔끔해질 것입니다.
  3. 예외 처리 로직이 그대로 유지되어 안정성이 보장됩니다.

68-72: 좋아요 상태 확인 메서드명이 개선되었습니다.

getIsLiked에서 isUnivApplyInfoLiked로 변경되어 메서드의 목적이 더 명확하고 가독성이 향상되었습니다. 반환 타입과 로직은 적절히 유지되었습니다.

src/main/java/com/example/solidconnection/university/controller/UnivApplyInfoController.java (3)

49-54: 좋아요 목록 조회 엔드포인트가 적절히 업데이트되었습니다.

  1. 메서드명이 getMyWishUnivApplyInfo에서 getLikedUnivApplyInfos로 변경되어 용어 통일이 달성되었습니다.
  2. 서비스 호출도 myPageService.getLikedUnivApplyInfos로 일관되게 변경되었습니다.
  3. 응답 타입과 로직은 그대로 유지되어 기능적 안정성이 보장됩니다.

57-63: 좋아요 상태 확인 엔드포인트가 명확하게 개선되었습니다.

메서드명과 서비스 호출이 isUnivApplyInfoLiked로 통일되어 의도가 더욱 명확해졌습니다. RESTful API 관점에서도 적절한 네이밍입니다.


66-72: 좋아요 추가/취소 엔드포인트가 효과적으로 단순화되었습니다.

  1. 메서드명이 각각 addUnivApplyInfoLike, cancelUnivApplyInfoLike로 변경되어 일관성이 향상되었습니다.
  2. 반환 타입을 ResponseEntity<Void>로 변경하여 불필요한 응답 객체가 제거되었습니다.
  3. ResponseEntity.ok().build()로 200 OK 응답을 반환하는 것이 적절합니다.
  4. REST API 설계 관점에서 좋아요/취소 같은 액션은 성공 여부만 알면 되므로 단순화가 합리적입니다.

Also applies to: 75-81

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (1)
src/main/java/com/example/solidconnection/siteuser/service/MyPageService.java (1)

97-103: 도메인 분리 관점에서의 메서드 위치 재고 제안

PR 설명에서 언급하신 대로, 이 메서드를 UnivApplyInfoLikeService로 이동하는 것이 도메인 관점에서 더 적절할 것 같습니다.

  1. 현재 위치의 문제점:

    • MyPageService는 페이지 관점의 서비스
    • 좋아요한 대학 정보 조회는 좋아요 도메인에 더 적합
  2. 이동 시 장점:

    • 도메인 응집도 향상
    • 단일 책임 원칙 준수
    • 유지보수성 개선
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between bfa7ba7 and 4148ecf.

📒 Files selected for processing (5)
  • src/main/java/com/example/solidconnection/siteuser/service/MyPageService.java (1 hunks)
  • src/main/java/com/example/solidconnection/university/controller/UnivApplyInfoController.java (1 hunks)
  • src/main/java/com/example/solidconnection/university/service/UnivApplyInfoLikeService.java (4 hunks)
  • src/test/java/com/example/solidconnection/siteuser/service/MyPageServiceTest.java (1 hunks)
  • src/test/java/com/example/solidconnection/university/service/UnivApplyInfoLikeServiceTest.java (6 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: build
🔇 Additional comments (15)
src/test/java/com/example/solidconnection/siteuser/service/MyPageServiceTest.java (1)

100-100: 용어 통일화가 잘 적용되었습니다!

테스트 메서드 호출이 서비스 레이어의 변경사항과 일치하도록 정확히 업데이트되었습니다.

  1. 메서드 이름 변경: getWishUnivApplyInfogetLikedUnivApplyInfos
  2. 용어 통일: "wish" → "like" 일관성 확보
src/main/java/com/example/solidconnection/siteuser/service/MyPageService.java (1)

97-97: 메서드 이름 변경이 적절히 완료되었습니다!

용어 통일화 목적으로 메서드 이름이 정확히 업데이트되었습니다.

  1. 메서드 이름: getWishUnivApplyInfogetLikedUnivApplyInfos
  2. 기능 유지: 내부 로직은 그대로 유지되어 안정성 확보
src/main/java/com/example/solidconnection/university/service/UnivApplyInfoLikeService.java (4)

34-34: 메서드 이름이 더욱 명확해졌습니다!

메서드 이름이 액션의 의도를 더 잘 표현하도록 개선되었습니다.

  1. 변경사항: likeUnivApplyInfoaddUnivApplyInfoLike
  2. 개선점: "add"를 통해 좋아요 추가 액션임을 명확히 표현

53-53: 좋아요 취소 메서드 이름 개선 완료

메서드 이름이 더 직관적이고 일관성 있게 변경되었습니다.

  1. 변경사항: cancelLikeUnivApplyInfocancelUnivApplyInfoLike
  2. 일관성: addUnivApplyInfoLike와 네이밍 패턴 일치

68-68: 좋아요 상태 확인 메서드 네이밍 개선

메서드 이름이 boolean 반환 메서드의 관례에 더 적합하게 변경되었습니다.

  1. 변경사항: getIsLikedisUnivApplyInfoLiked
  2. 개선점: "is"로 시작하는 boolean 메서드 네이밍 관례 준수

34-47: 반환 타입 간소화가 적절히 적용되었습니다

좋아요 추가 메서드의 반환 타입이 void로 변경되어 API가 더 간결해졌습니다.

  1. 변경 장점:

    • HTTP 201/200 상태 코드만으로 성공 여부 확인 가능
    • 불필요한 응답 페이로드 제거
    • API 응답 시간 단축
  2. RESTful 설계 관점:

    • 리소스 생성/삭제 작업에서 일반적인 패턴
    • 클라이언트는 HTTP 상태 코드로 결과 판단
src/test/java/com/example/solidconnection/university/service/UnivApplyInfoLikeServiceTest.java (5)

55-55: 테스트 메서드 호출이 정확히 업데이트되었습니다

서비스 레이어의 메서드 이름 변경에 맞춰 테스트가 일관성 있게 수정되었습니다.

  1. 메서드 호출: likeUnivApplyInfoaddUnivApplyInfoLike
  2. 테스트 커버리지: 기존과 동일하게 유지

84-84: 좋아요 취소 테스트 메서드 업데이트 완료

  1. 메서드 호출: cancelLikeUnivApplyInfocancelUnivApplyInfoLike
  2. 테스트 로직: 핵심 검증 로직은 그대로 유지

118-118: 좋아요 상태 확인 테스트 메서드들 일괄 업데이트

모든 관련 테스트 메서드에서 새로운 서비스 메서드를 정확히 호출하고 있습니다.

  1. 메서드 호출: getIsLikedisUnivApplyInfoLiked
  2. 테스트 시나리오:
    • 좋아요한 상태 확인
    • 좋아요하지 않은 상태 확인
    • 존재하지 않는 정보 예외 처리

Also applies to: 127-127, 139-139


144-144: 헬퍼 메서드 이름 통일성 확보

헬퍼 메서드 이름이 도메인 용어와 일치하도록 적절히 변경되었습니다.

  1. 변경사항: saveLikedUniversitysaveLikedUnivApplyInfo
  2. 일관성: 도메인 객체명과 정확히 일치

58-61: 테스트 검증 로직 간소화가 적절합니다

void 반환 타입 변경에 따라 테스트 검증 방식이 적절히 조정되었습니다.

  1. 변경 전: 응답 메시지 검증
  2. 변경 후: 데이터베이스 상태 직접 검증
  3. 장점:
    • 더 직접적이고 명확한 테스트
    • 실제 비즈니스 로직의 결과 확인

Also applies to: 87-90

src/main/java/com/example/solidconnection/university/controller/UnivApplyInfoController.java (4)

49-49: 좋아요 목록 조회 API 메서드 이름 개선

API 메서드 이름이 더 직관적이고 RESTful하게 변경되었습니다.

  1. 메서드 이름: getMyWishUnivApplyInfogetLikedUnivApplyInfos
  2. 서비스 호출: myPageService.getLikedUnivApplyInfos 사용
  3. 용어 통일: "wish" → "like" 일관성 확보

Also applies to: 52-52


57-57: 좋아요 상태 확인 API 메서드 개선

메서드 이름이 boolean 반환의 의미를 더 명확히 표현하도록 변경되었습니다.

  1. 메서드 이름: getIsLikedisUnivApplyInfoLiked
  2. 서비스 호출: 업데이트된 서비스 메서드와 일치
  3. 네이밍 일관성: "is"로 시작하는 boolean 메서드 관례 준수

Also applies to: 61-61


66-72: 좋아요 추가 API 응답 타입 간소화

API 응답이 더 간결하고 RESTful한 방식으로 개선되었습니다.

  1. 반환 타입 변경: ResponseEntity<LikeResultResponse>ResponseEntity<Void>

  2. 메서드 이름: addUnivApplyInfoLike로 의도 명확화

  3. HTTP 응답:

    • 성공: 200 OK (응답 본문 없음)
    • 실패: 예외를 통한 적절한 HTTP 상태 코드
  4. RESTful 설계 장점:

    • 불필요한 페이로드 제거
    • 표준 HTTP 상태 코드 활용
    • 클라이언트 처리 로직 간소화

75-81: 좋아요 취소 API도 동일하게 개선 완료

좋아요 추가 API와 일관성 있는 개선이 적용되었습니다.

  1. 반환 타입: ResponseEntity<Void> 사용
  2. 메서드 이름: cancelUnivApplyInfoLike로 명확화
  3. API 일관성: POST/DELETE 엔드포인트 동일한 응답 패턴

Copy link
Contributor

@Gyuhyeok99 Gyuhyeok99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

빠른 반영 너무 좋습니다 ㅎㅎ

UnivApplyInfoLikeService 하위로 옮기려 합니다.

전 옮기는 거 좋은 거 같습니다!

Copy link
Member

@whqtker whqtker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

확인했습니다 ! 말씀하신 내용도 동의합니다

Copy link
Contributor

@lsy1307 lsy1307 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

특이사항 없는 것 같습니다!

@nayonsoso nayonsoso merged commit 1ca6126 into develop Jul 13, 2025
3 checks passed
@nayonsoso nayonsoso deleted the refactor/382-unify-liked-terminology branch July 29, 2025 00:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor: '좋아요한'을 의미하는 단어를 liked로 용어 통일

5 participants