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

#42 feat: 출석일정 admin 도메인 구현 #43

Merged
merged 37 commits into from
Jul 22, 2024
Merged

#42 feat: 출석일정 admin 도메인 구현 #43

merged 37 commits into from
Jul 22, 2024

Conversation

hyxklee
Copy link
Member

@hyxklee hyxklee commented Jul 20, 2024

1. 개발내용

  • 출석일정을 생성하는 파트를 admin 도메인 안에 구현
  • admin/attendanceEvent 디렉토리 안에 구현
  • 코드 통일성 최적화 및 정렬과 코드 정리
  • TYPE 침범을 막기 위한 예외처리 진행

2. 구현 세부사항

  • 어드민의 책임이 많을 것이라 생각해 admin 도메인 내부에 attendanceEvent 디렉토리를 만들어서 구현했습니다.
  • 자잘한 수정들 했습니다
  • 공지사항의 경우 생성한 날을 기준으로 캘린더에 표시하는것으로 통일하는게 좋을 것 같아 update시 startDateTime과 endDateTime은 수정하지 않는 것으로 결정했는데 어떠신지 피드백 부탁드립니다.

3. 메모

  • NOTICE, EVENT 도메인은 이제 완료 된 것 같습니당~!
  • 수정사항 보이는 거나 빠진 로직 보이시면 말해주세욥!

hyxklee added 26 commits July 20, 2024 16:06
@hyxklee hyxklee added Feature 기능 개발 Refactor 코드 리펙토링 labels Jul 20, 2024
@hyxklee hyxklee requested review from jj0526 and rootTiket July 20, 2024 10:00
@hyxklee hyxklee requested review from KoungQ, jiixon and huncozyboy July 20, 2024 10:00
@hyxklee hyxklee self-assigned this Jul 20, 2024
@hyxklee hyxklee linked an issue Jul 20, 2024 that may be closed by this pull request
Copy link
Member

@huncozyboy huncozyboy left a comment

Choose a reason for hiding this comment

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

좋은 코드 작성해주셔서 출석 api에서 출석 관련된 일정을 조회해올때 충돌없이 깔끔하게 조회 가능할거 같습니다 고생 많으셨습니다 !!


public class AttendanceEventTypeNotMatchException extends TypeNotMatchException{
public AttendanceEventTypeNotMatchException() {super("출석일정은 직접 수정할 수 없습니다.");}
}
Copy link
Member

Choose a reason for hiding this comment

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

출석일정 직접 수정이 불가능하도록 상세하게 예외처리를 해준 부분이 좋습니다 !

Comment on lines +65 to +68
return events.stream()
.map(noticeMapper::toNoticeDto)
.toList();
}
Copy link
Member

Choose a reason for hiding this comment

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

스트림의 사용을 통한 DTO 반환이 흥미로웠습니다 .toList();를 사용하여 리스트 형태로 반환하는거까지 가독성이 좋다고 생각했습니다 저도 DTO 반환시 참고하겠습니다

Copy link
Member

@KoungQ KoungQ left a comment

Choose a reason for hiding this comment

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

LGTM (따봉)

@hyxklee hyxklee merged commit 3ee5561 into main Jul 22, 2024
1 check passed
@hyxklee hyxklee deleted the feature-#42 branch July 23, 2024 06:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature 기능 개발 Refactor 코드 리펙토링
Projects
None yet
Development

Successfully merging this pull request may close these issues.

#42 Feat: 어드민 컨트롤러 분리
3 participants