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

[FEAT] 알림 어드민 API 개발 #173

Merged
merged 8 commits into from
Oct 26, 2023
Merged

[FEAT] 알림 어드민 API 개발 #173

merged 8 commits into from
Oct 26, 2023

Conversation

thguss
Copy link
Collaborator

@thguss thguss commented Oct 25, 2023

Related Issue 🚀

Work Description ✏️

  • 알림 생성 API
  • 알림 리스트 조회 API
  • 알림 상세 조회 API
  • 알림 삭제 API

PR Point 📸

아래와 같은 조건으로 API를 설계했어요. 참고 부탁드려요~!

  • 알림 생성 시 status 값의 디폴트는 BEFORE
  • part와 isActive는 하나만 null 값일 수 없음
  • 리스트 조회에서 generation, part, status 필터링 (query 값이 null로 들어오면 전체 조회)

@thguss thguss added sohyeon 소현 작업 feat 기능 구현 labels Oct 25, 2023
@thguss thguss requested a review from dragontaek-lee October 25, 2023 07:56
@thguss thguss self-assigned this Oct 25, 2023
Copy link
Member

@dragontaek-lee dragontaek-lee left a comment

Choose a reason for hiding this comment

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

너무 깔끔하게 짜셨고 CRUD라 리뷰 남길게 크게 없네요..! 고생하셨습니다~~!

@ApiOperation("알림 리스트 조회")
@GetMapping
public ResponseEntity<ApiResponse> getAlarms(
@RequestParam(required = false) Integer generation,
Copy link
Member

Choose a reason for hiding this comment

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

현재기수는 fe에서 관리하는거죠?!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

네! 세션 생성에서도 generation 값을 받고 있어서 통일되게 작성했어요!

) {
public Alarm toEntity() {
Copy link
Member

Choose a reason for hiding this comment

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

오 이거 새롭네요..! 나중에 다른거도 이렇게 하면 좋겠네요 좋아요!

@@ -64,8 +65,13 @@ public Alarm(AlarmRequestDTO requestDTO) {
this.title = requestDTO.title();
Copy link
Member

Choose a reason for hiding this comment

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

코드리뷰에 잡히지 않아서 커서를 여기다 두었는데,
혹시 이부분 List으로 변경할수 있을까요?! 알림서버에서 스트링값으로 받고 있어서!(dynamoDB)
늦게 이야기해서 죄송합니다 ㅠㅠ

@Column(columnDefinition = "TEXT")
	@Convert(converter = LongListConverter.class)
	private List<Long> targetList;

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

String 타입의 리스트를 말하는거죠??

Part part,
List<Long> targetList,
Status status
List<Long> targetList
Copy link
Member

Choose a reason for hiding this comment

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

List 변경이 가능할까요:!

Copy link
Member

@dragontaek-lee dragontaek-lee left a comment

Choose a reason for hiding this comment

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

String 리스트로 변경하면서 FE에서 csv 추출하는 로직에 있어 해당 자료형으로 보내달라고 해야할것 같아요

@thguss thguss added this pull request to the merge queue Oct 26, 2023
Merged via the queue into develop with commit c5e9aef Oct 26, 2023
1 check failed
@thguss thguss deleted the sohyeon_#172 branch October 26, 2023 04:55
github-merge-queue bot pushed a commit that referenced this pull request Oct 27, 2023
[FEAT] 알림 어드민 API 개발 #173
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat 기능 구현 size/L sohyeon 소현 작업
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT] 알림 어드민 API
2 participants