-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: 지원서를 id로 조회할 수 있다. * feat: 서류 합불, 면접시간 설정 api 추가 * docs: api 문서 개발
- Loading branch information
1 parent
e9e8389
commit abb4047
Showing
12 changed files
with
466 additions
and
29 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
13 changes: 13 additions & 0 deletions
13
src/main/java/yonseigolf/server/apply/dto/request/DocumentPassRequest.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,13 @@ | ||
package yonseigolf.server.apply.dto.request; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class DocumentPassRequest { | ||
|
||
private boolean documentPass; | ||
} |
13 changes: 13 additions & 0 deletions
13
src/main/java/yonseigolf/server/apply/dto/request/FinalPassRequest.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,13 @@ | ||
package yonseigolf.server.apply.dto.request; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class FinalPassRequest { | ||
|
||
private boolean finalPass; | ||
} |
15 changes: 15 additions & 0 deletions
15
src/main/java/yonseigolf/server/apply/dto/request/UpdateInterviewTimeRequest.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,15 @@ | ||
package yonseigolf.server.apply.dto.request; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.time.LocalDateTime; | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class UpdateInterviewTimeRequest { | ||
|
||
private LocalDateTime time; | ||
} |
70 changes: 70 additions & 0 deletions
70
src/main/java/yonseigolf/server/apply/dto/response/ApplicationResponse.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,70 @@ | ||
package yonseigolf.server.apply.dto.response; | ||
|
||
import com.fasterxml.jackson.annotation.JsonFormat; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import yonseigolf.server.apply.entity.Application; | ||
|
||
import java.time.LocalDateTime; | ||
|
||
@Getter | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class ApplicationResponse { | ||
|
||
private Long id; | ||
private String name; | ||
private String photo; | ||
private long age; | ||
private long studentId; | ||
private String email; | ||
private String major; | ||
private String phoneNumber; | ||
private long golfDuration; | ||
private long roundCount; | ||
private boolean lessonStatus; | ||
private boolean clubStatus; | ||
private String selfIntroduction; | ||
private String applyReason; | ||
private String skillEvaluation; | ||
private String golfMemory; | ||
private String otherClub; | ||
private String swingVideo; | ||
@JsonFormat(pattern = "MM월dd일 HH:mm") | ||
private LocalDateTime submitTime; | ||
private Boolean documentPass; | ||
private Boolean finalPass; | ||
@JsonFormat(pattern = "MM월dd일 HH:mm") | ||
private LocalDateTime interviewTime; | ||
|
||
public static ApplicationResponse fromApplication(Application application) { | ||
|
||
return ApplicationResponse.builder() | ||
.id(application.getId()) | ||
.name(application.getName()) | ||
.photo(application.getPhoto()) | ||
.age(application.getAge()) | ||
.studentId(application.getStudentId()) | ||
.email(application.getEmail()) | ||
.major(application.getMajor()) | ||
.phoneNumber(application.getPhoneNumber()) | ||
.golfDuration(application.getGolfDuration()) | ||
.roundCount(application.getRoundCount()) | ||
.lessonStatus(application.isLessonStatus()) | ||
.clubStatus(application.isClubStatus()) | ||
.selfIntroduction(application.getSelfIntroduction()) | ||
.applyReason(application.getApplyReason()) | ||
.skillEvaluation(application.getSkillEvaluation()) | ||
.golfMemory(application.getGolfMemory()) | ||
.otherClub(application.getOtherClub()) | ||
.swingVideo(application.getSwingVideo()) | ||
.submitTime(application.getSubmitTime()) | ||
.documentPass(application.getDocumentPass()) | ||
.finalPass(application.getFinalPass()) | ||
.interviewTime(application.getInterviewTime()) | ||
.build(); | ||
} | ||
} |
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.