-
Notifications
You must be signed in to change notification settings - Fork 0
refactor: 사용자 자신의 스케줄 조회 API 스펙 변경 #60
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
base: dev
Are you sure you want to change the base?
Conversation
ysw789
left a comment
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.
논의했던 대로 스펙 수정 바랍니다
- 인자 없이 요청 시 해당 주의 스케줄 전체 반환
- 년/월/일 포함 시 해당 날짜의 스케줄 반환
- 년/월 포함 시 해당 월의 스케줄 반환
...a/com/dreamteam/alter/adapter/inbound/general/schedule/dto/MyScheduleMonthlyResponseDto.java
Outdated
Show resolved
Hide resolved
| @Service("getMySchedule") | ||
| @Transactional(readOnly = true) | ||
| @RequiredArgsConstructor | ||
| public class GetMySchedule implements GetMyScheduleInquiryUseCase { |
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.
인터페이스 이름이랑 구현체 이름이랑 맞춰주세요
복잡한 네이밍보단 기존 네이밍 유지하는 게 적절해보입니다 GetMyScheduleUseCase GetMySchedule
|
|
||
| List<WorkspaceShift> shifts; | ||
|
|
||
| if (request.getYear() != null && request.getMonth() != null && request.getDay() != null) { |
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.
null check는 org.apache.commons.lang3.ObjectUtils 의 isEmpty(), isNotEmpty() 활용해주세요 (34, 42, 49행 전부 포함)
다른 UseCase들 구현 참조
| @AllArgsConstructor(access = AccessLevel.PRIVATE) | ||
| @Builder(access = AccessLevel.PRIVATE) | ||
| @Schema(description = "스케줄 조회 통합 응답") | ||
| public class MyScheduleInquiryResponseDto { |
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.
응답 DTO 클래스 이름도 단순화 해도 괜찮을 것 같네요
GetMyScheduleResponseDto
관련 문서
작업문서링크