-
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.
Merge pull request #49 from cau-likelion-org/chore/SL-18/dto
[SL-18 CHORE] application response dto 수정
- Loading branch information
Showing
4 changed files
with
75 additions
and
20 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
46 changes: 30 additions & 16 deletions
46
...a/com/startlion/startlionserver/dto/response/application/ApplicationPage1GetResponse.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
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
...main/java/com/startlion/startlionserver/dto/response/question/CommonQuestionResponse.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 com.startlion.startlionserver.dto.response.question; | ||
|
||
import com.startlion.startlionserver.domain.entity.CommonQuestion; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
|
||
@Data | ||
@AllArgsConstructor | ||
public class CommonQuestionResponse { | ||
private Long commonQuestionId; | ||
private Long generation; | ||
private String commonQuestion1; | ||
private String commonQuestion2; | ||
private String commonQuestion3; | ||
private String commonQuestion4; | ||
private String commonQuestion5; | ||
|
||
public static CommonQuestionResponse of(CommonQuestion commonQuestion) { | ||
return new CommonQuestionResponse( | ||
commonQuestion.getCommonQuestionId(), | ||
commonQuestion.getGeneration(), | ||
commonQuestion.getCommonQuestion1(), | ||
commonQuestion.getCommonQuestion2(), | ||
commonQuestion.getCommonQuestion3(), | ||
commonQuestion.getCommonQuestion4(), | ||
commonQuestion.getCommonQuestion5() | ||
); | ||
} | ||
} |