-
Notifications
You must be signed in to change notification settings - Fork 0
[feat] 면접 예약 API 구현 #55
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
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
94eb07c
feat: 면접 예약 API 구현
hodoon 6b966e8
feat: 면접 예약 API InterviewSlotRepository 쿼리 추가
hodoon 3c98cc7
feat: 면접 예약 API
hodoon 83a5012
Merge branch 'dev' into feat/#45-1
hodoon 79fb59c
fix: 면접 예약 API 수정 완료
hodoon 881c958
Merge branch 'feat/#45-1' of https://github.com/DASOM-GitHub/dasom-we…
hodoon 438fc5c
feat: Google Credentials 주입 방식 파일이 아닌 JSON 값으로 받도록 수정
ysw789 be79688
chore: .gitignore 적용되지 않는 항목 제거
ysw789 e54c4cb
Merge remote-tracking branch 'origin/feat/#45-1' into feat/#45-1
ysw789 051c4a4
fix: 면접 예약 API 수정 완료
hodoon caf2c7a
fix: 면접 예약 API 수정 완료
hodoon ba34fa7
fix: 면접 예약 API 수정 완료
hodoon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
24 changes: 24 additions & 0 deletions
24
src/main/java/dmu/dasom/api/domain/interview/dto/InterviewReservationRequestDto.java
This file contains hidden or 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,24 @@ | ||
| package dmu.dasom.api.domain.interview.dto; | ||
|
|
||
| import io.swagger.v3.oas.annotations.media.Schema; | ||
| import jakarta.validation.constraints.NotNull; | ||
| import jakarta.validation.constraints.Pattern; | ||
| import lombok.*; | ||
|
|
||
| @Getter | ||
| @Setter | ||
| @NoArgsConstructor | ||
| @AllArgsConstructor | ||
| @Builder | ||
| @Schema(name = "InterviewReservationResponseDto", description = "면접 예약 응답 DTO") | ||
| public class InterviewReservationRequestDto { | ||
|
|
||
| @NotNull(message = "슬롯 ID는 필수 값입니다.") | ||
| @Schema(description = "예약할 면접 슬롯의 ID", example = "1") | ||
| private Long slotId; // 예약할 슬롯 ID | ||
|
|
||
| @NotNull(message = "예약 코드는 필수 값입니다.") | ||
| @Pattern(regexp = "^[0-9]{8}[0-9]{4}$", message = "예약 코드는 학번 전체와 전화번호 뒤 4자리로 구성되어야 합니다.") | ||
| @Schema(description = "학번 전체와 전화번호 뒤 4자리로 구성된 예약 코드", example = "202500010542") | ||
| private String reservationCode; // 학번 전체 + 전화번호 뒤 4자리 조합 코드 | ||
| } | ||
31 changes: 31 additions & 0 deletions
31
src/main/java/dmu/dasom/api/domain/interview/dto/InterviewReservationResponseDto.java
This file contains hidden or 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,31 @@ | ||
| package dmu.dasom.api.domain.interview.dto; | ||
|
|
||
| import io.swagger.v3.oas.annotations.media.Schema; | ||
| import jakarta.validation.constraints.NotNull; | ||
| import lombok.*; | ||
|
|
||
| @Getter | ||
| @Setter | ||
| @NoArgsConstructor | ||
| @AllArgsConstructor | ||
| @Builder | ||
| @Schema(name = "InterviewSlotCreateRequestDto", description = "면접 슬롯 생성 요청 DTO") | ||
| public class InterviewReservationResponseDto { | ||
|
|
||
| @NotNull(message = "예약 ID는 필수 값입니다.") | ||
| @Schema(description = "예약의 고유 ID", example = "1") | ||
| private Long reservationId; // 예약 ID | ||
|
|
||
| @NotNull(message = "슬롯 ID는 필수 값입니다.") | ||
| @Schema(description = "예약된 면접 슬롯의 ID", example = "10") | ||
| private Long slotId; // 슬롯 ID | ||
|
|
||
| @NotNull(message = "지원자 ID는 필수 값입니다.") | ||
| @Schema(description = "예약한 지원자의 ID", example = "1001") | ||
| private Long applicantId; // 지원자 ID | ||
|
|
||
| @NotNull(message = "예약 코드는 필수 값입니다.") | ||
| @Schema(description = "학번 전체와 전화번호 뒤 4자리로 구성된 예약 코드", example = "202500010542") | ||
| private String reservationCode; // 예약 코드 (학번+전화번호 조합) | ||
|
|
||
| } |
33 changes: 33 additions & 0 deletions
33
src/main/java/dmu/dasom/api/domain/interview/dto/InterviewSlotCreateRequestDto.java
This file contains hidden or 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,33 @@ | ||
| package dmu.dasom.api.domain.interview.dto; | ||
|
|
||
| import io.swagger.v3.oas.annotations.media.Schema; | ||
| import jakarta.validation.constraints.NotNull; | ||
| import lombok.*; | ||
|
|
||
| import java.time.LocalDate; | ||
| import java.time.LocalTime; | ||
|
|
||
| @Getter | ||
| @Setter | ||
| @NoArgsConstructor | ||
| @AllArgsConstructor | ||
| @Builder | ||
| @Schema(name = "InterviewSlotCreateRequestDto", description = "면접 슬롯 생성 요청 DTO") | ||
| public class InterviewSlotCreateRequestDto { | ||
|
|
||
| @NotNull(message = "시작 날짜는 필수 값입니다.") | ||
| @Schema(description = "면접 시작 날짜", example = "2025-03-12") | ||
| private LocalDate startDate; // 면접 시작 날짜 | ||
|
|
||
| @NotNull(message = "종료 날짜는 필수 값입니다.") | ||
| @Schema(description = "면접 종료 날짜", example = "2025-03-14") | ||
| private LocalDate endDate; // 면접 종료 날짜 | ||
|
|
||
| @NotNull(message = "시작 시간은 필수 값입니다.") | ||
| @Schema(description = "하루의 시작 시간", example = "10:00") | ||
| private LocalTime startTime; // 하루의 시작 시간 | ||
|
|
||
| @NotNull(message = "종료 시간은 필수 값입니다.") | ||
| @Schema(description = "하루의 종료 시간", example = "17:00") | ||
| private LocalTime endTime; // 하루의 종료 시간 | ||
| } |
37 changes: 37 additions & 0 deletions
37
src/main/java/dmu/dasom/api/domain/interview/dto/InterviewSlotRequestDto.java
This file contains hidden or 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,37 @@ | ||
| package dmu.dasom.api.domain.interview.dto; | ||
|
|
||
| import io.swagger.v3.oas.annotations.media.Schema; | ||
| import jakarta.validation.constraints.Max; | ||
| import jakarta.validation.constraints.Min; | ||
| import jakarta.validation.constraints.NotNull; | ||
| import lombok.*; | ||
|
|
||
| import java.time.LocalDate; | ||
| import java.time.LocalTime; | ||
|
|
||
| @Getter | ||
| @Setter | ||
| @NoArgsConstructor | ||
| @AllArgsConstructor | ||
| @Builder | ||
| @Schema(name = "InterviewSlotRequestDto", description = "면접 슬롯 요청 DTO") | ||
| public class InterviewSlotRequestDto { | ||
|
|
||
| @NotNull(message = "면접 날짜는 필수 입력 값입니다.") | ||
| @Schema(description = "면접이 진행되는 날짜", example = "2025-03-12") | ||
| private LocalDate interviewDate; // 면접 날짜 | ||
|
|
||
| @NotNull(message = "시작 시간은 필수 입력 값입니다.") | ||
| @Schema(description = "면접 시작 시간", example = "10:00") | ||
| private LocalTime startTime; // 시작 시간 | ||
|
|
||
| @NotNull(message = "종료 시간은 필수 입력 값입니다.") | ||
| @Schema(description = "면접 종료 시간", example = "10:20") | ||
| private LocalTime endTime; // 종료 시간 | ||
|
|
||
| @NotNull(message = "최대 지원자 수는 필수 입력 값입니다.") | ||
| @Min(value = 1, message = "최대 지원자 수는 최소 1명 이상이어야 합니다.") | ||
| @Max(value = 100, message = "최대 지원자 수는 최대 100명까지 가능합니다.") | ||
| @Schema(description = "해당 슬롯에서 허용되는 최대 지원자 수", example = "2") | ||
| private Integer maxCandidates; // 최대 지원자 수 | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.