-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEAT] #559 application detail api proto
- Loading branch information
Showing
21 changed files
with
293 additions
and
30 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
11 changes: 11 additions & 0 deletions
11
gg-data/src/main/java/gg/data/recruit/application/CheckListEntityDto.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,11 @@ | ||
package gg.data.recruit.application; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
@AllArgsConstructor | ||
@Getter | ||
public class CheckListEntityDto { | ||
private Long checkListId; | ||
private String content; | ||
} |
24 changes: 24 additions & 0 deletions
24
gg-data/src/main/java/gg/data/recruit/application/FormEntityDto.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,24 @@ | ||
package gg.data.recruit.application; | ||
import gg.data.recruit.recruitment.enums.InputType; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
public class FormEntityDto { | ||
private Long questionId; | ||
private InputType inputType; | ||
|
||
private CheckListEntityDto checkedList; | ||
private String answer; | ||
|
||
public FormEntityDto(Long questionId, InputType inputType, CheckListEntityDto checkedList) { | ||
this.questionId = questionId; | ||
this.inputType = inputType; | ||
this.checkedList = checkedList; | ||
} | ||
|
||
public FormEntityDto(Long questionId, InputType inputType, String answer) { | ||
this.questionId = questionId; | ||
this.inputType = inputType; | ||
this.answer = answer; | ||
} | ||
} |
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
15 changes: 15 additions & 0 deletions
15
...pi/src/main/java/gg/recruit/api/user/application/controller/response/CheckListResDto.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 gg.recruit.api.user.application.controller.response; | ||
|
||
import gg.recruit.api.user.application.service.response.CheckListSvcDto; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
public class CheckListResDto { | ||
private Long checkListId; | ||
private String content; | ||
|
||
public CheckListResDto(CheckListSvcDto checkListSvcDto) { | ||
this.checkListId = checkListSvcDto.getCheckListId(); | ||
this.content = checkListSvcDto.getContent(); | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
...uit-api/src/main/java/gg/recruit/api/user/application/controller/response/FormResDto.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,24 @@ | ||
package gg.recruit.api.user.application.controller.response; | ||
|
||
import static java.util.stream.Collectors.*; | ||
|
||
import java.util.List; | ||
|
||
import gg.recruit.api.user.application.service.response.FormSvcDto; | ||
import lombok.AllArgsConstructor; | ||
|
||
@AllArgsConstructor | ||
public class FormResDto { | ||
private Long questionId; | ||
private String inputType; | ||
private List<CheckListResDto> checkeList; | ||
private String answer; | ||
|
||
public FormResDto(FormSvcDto formSvcDto) { | ||
this.questionId = formSvcDto.getQuestionId(); | ||
this.inputType = formSvcDto.getInputType(); | ||
this.checkeList = formSvcDto.getCheckedList().stream() | ||
.map(CheckListResDto::new).collect(toList()); | ||
this.answer = formSvcDto.getAnswer(); | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...n/java/gg/recruit/api/user/application/controller/response/MyApplicationDetailResDto.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,28 @@ | ||
package gg.recruit.api.user.application.controller.response; | ||
|
||
import static java.util.stream.Collectors.*; | ||
|
||
import java.time.LocalDateTime; | ||
import java.util.List; | ||
|
||
import gg.recruit.api.user.application.service.response.ApplicationWithAnswerSvcDto; | ||
import lombok.AllArgsConstructor; | ||
|
||
@AllArgsConstructor | ||
public class MyApplicationDetailResDto { | ||
private Long applicationId; | ||
private LocalDateTime endTime; | ||
private String title; | ||
private String content; | ||
private List<FormResDto> from; | ||
|
||
public MyApplicationDetailResDto(ApplicationWithAnswerSvcDto applicationWithAnswerSvcDto) { | ||
this.applicationId = applicationWithAnswerSvcDto.getApplicationId(); | ||
this.endTime = applicationWithAnswerSvcDto.getEndTime(); | ||
this.title = applicationWithAnswerSvcDto.getTitle(); | ||
this.content = applicationWithAnswerSvcDto.getContent(); | ||
this.from = applicationWithAnswerSvcDto.getForm().stream() | ||
.map(FormResDto::new) | ||
.collect(toList()); | ||
} | ||
} |
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
12 changes: 12 additions & 0 deletions
12
...c/main/java/gg/recruit/api/user/application/service/param/FindApplicationDetailParam.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,12 @@ | ||
package gg.recruit.api.user.application.service.param; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
public class FindApplicationDetailParam { | ||
private Long userId; | ||
private Long recruitId; | ||
private Long applicationId; | ||
} |
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.