Skip to content
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

[DPMBE-127] 알림 하이라이트를 조회한다 #228

Merged
merged 4 commits into from
Jul 21, 2023
Merged

Conversation

kdomo
Copy link
Member

@kdomo kdomo commented Jul 21, 2023

개요

작업사항

  • notification 중 하이라이트 조회 부분 추가하여 약속 모음집 상세에 3건 조회하는거 추가하였고,
  • 약속모음집 -> 하이라이트 -> 상세 눌렀을때 호출할 API 생성하였습니다.

@kdomo kdomo self-assigned this Jul 21, 2023
Copy link
Collaborator

@BlackBean99 BlackBean99 left a comment

Choose a reason for hiding this comment

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

수고하셨슴다

@@ -27,4 +31,14 @@ class NotificationController(
): NotificationResponse {
return notificationReadUseCase.execute(pageable)
}

@Operation(summary = "하이라이트 조회", description = "약속 ID로 하이라이트를 조회합니다")
@GetMapping("/highlights/promises/{promiseId}")
Copy link
Collaborator

Choose a reason for hiding this comment

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

parameter 에서 카멜케이스말고 저는 promise-id 이렇게 작성했었습니다 참고!

@GetMapping("/highlights/promises/{promiseId}")
fun getHighlights(
@PathVariable promiseId: Long,
@ParameterObject @PageableDefault
Copy link
Collaborator

Choose a reason for hiding this comment

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

@PageableDefault(size=10) 이렇게 기본값을 설정해줘도 좋을 것 같아용

Copy link
Member Author

@kdomo kdomo Jul 21, 2023

Choose a reason for hiding this comment

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

@PageableDefault의 size default가 10으로 알고있는데,
따로 적어줘야하는 이유가 있을지 궁금해요!!

image

Copy link
Collaborator

Choose a reason for hiding this comment

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

명시적으로 적어주는게!! 가독성이 좋지 않을까여? 10이 아니더라도 ㅋㅋ

@sonarcloud
Copy link

sonarcloud bot commented Jul 21, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

20.0% 20.0% Coverage
0.0% 0.0% Duplication

@kdomo kdomo merged commit f4d1e07 into develop Jul 21, 2023
3 checks passed
@kdomo kdomo deleted the feature/DPMBE-127 branch July 21, 2023 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[DPMBE-127] 알림 하이라이트를 조회한다
2 participants