-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: 코드 스타일 및 컨벤션 적용 - 접근 제어자 수정 - 메서드 순서 컨벤션 적용 - 메서드 최대 길이 컨벤션 적용 - 불필요한 공백 제거 * feat: 최소 시간 보장 정렬 기준 추가 * feat: 잘못된 최소 시간 입력시 예외 발생 로직 추가 * feat: 최소 시간 보장 추천 로직 추가 * refactor: 추천 요청 파라미터 값 객체화 및 최소 시간 검증 로직 추가 * fix(ScheduleRecommendRequest): minTime 을 입력 받지 않은 경우 0으로 초기화 * refactor: 최소 시간 기준 수정 및 불필요한 정렬조건 삭제 * refactor: 가독성 있는 분기문 수정 * refactor: 일반적으로 사용되는 메서드 명명법 수정
- Loading branch information
Showing
16 changed files
with
254 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
backend/src/main/java/kr/momo/service/schedule/dto/ScheduleRecommendRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package kr.momo.service.schedule.dto; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import jakarta.validation.constraints.Min; | ||
import jakarta.validation.constraints.NotEmpty; | ||
import java.util.List; | ||
|
||
@Schema(description = "일정 추천 요청") | ||
public record ScheduleRecommendRequest( | ||
|
||
@NotEmpty | ||
@Schema(description = "추천 기준(이른 시간 순 / 길게 볼 수 있는 순)", example = "earliest") | ||
String recommendType, | ||
|
||
@NotEmpty | ||
@Schema(description = "추천 대상 참여자 이름", example = "페드로, 재즈, 모모") | ||
List<String> attendeeNames, | ||
|
||
@Schema(description = "최소 만남 시간(시간 단위)", example = "0, 1, 2, 3") | ||
@Min(value = 0, message = "최소 시간은 0보다 작을 수 없습니다.") | ||
Integer minTime | ||
) { | ||
|
||
public ScheduleRecommendRequest { | ||
if (minTime == null) { | ||
minTime = 0; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.