Skip to content

Conversation

@hodoon
Copy link
Contributor

@hodoon hodoon commented Jan 11, 2026

관련 문서

작업문서링크

Copy link
Contributor

@ysw789 ysw789 left a comment

Choose a reason for hiding this comment

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

논의했던 대로 스펙 수정 바랍니다

  1. 인자 없이 요청 시 해당 주의 스케줄 전체 반환
  2. 년/월/일 포함 시 해당 날짜의 스케줄 반환
  3. 년/월 포함 시 해당 월의 스케줄 반환

@Service("getMySchedule")
@Transactional(readOnly = true)
@RequiredArgsConstructor
public class GetMySchedule implements GetMyScheduleInquiryUseCase {
Copy link
Contributor

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) {
Copy link
Contributor

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.ObjectUtilsisEmpty(), isNotEmpty() 활용해주세요 (34, 42, 49행 전부 포함)
다른 UseCase들 구현 참조

@AllArgsConstructor(access = AccessLevel.PRIVATE)
@Builder(access = AccessLevel.PRIVATE)
@Schema(description = "스케줄 조회 통합 응답")
public class MyScheduleInquiryResponseDto {
Copy link
Contributor

Choose a reason for hiding this comment

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

응답 DTO 클래스 이름도 단순화 해도 괜찮을 것 같네요
GetMyScheduleResponseDto

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants