-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
53 changed files
with
660 additions
and
359 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
2 changes: 1 addition & 1 deletion
2
backend/bang-ggood/src/main/java/com/bang_ggood/category/controller/CategoryController.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
7 changes: 0 additions & 7 deletions
7
backend/bang-ggood/src/main/java/com/bang_ggood/category/dto/CategoryQuestionsResponse.java
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
...ang-ggood/src/main/java/com/bang_ggood/category/dto/WrittenCategoryQuestionsResponse.java
This file was deleted.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
...src/main/java/com/bang_ggood/category/dto/response/SelectedCategoryQuestionsResponse.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,19 @@ | ||
package com.bang_ggood.category.dto.response; | ||
|
||
import com.bang_ggood.category.domain.Category; | ||
import com.bang_ggood.checklist.dto.response.SelectedQuestionResponse; | ||
import java.util.List; | ||
|
||
public record SelectedCategoryQuestionsResponse(Integer categoryId, String categoryName, Integer score, | ||
List<SelectedQuestionResponse> questions) { | ||
|
||
public static SelectedCategoryQuestionsResponse of(Category category, Integer score, | ||
List<SelectedQuestionResponse> questions) { | ||
return new SelectedCategoryQuestionsResponse( | ||
category.getId(), | ||
category.getName(), | ||
score, | ||
questions | ||
); | ||
} | ||
} |
17 changes: 0 additions & 17 deletions
17
.../src/main/java/com/bang_ggood/category/dto/response/WrittenCategoryQuestionsResponse.java
This file was deleted.
Oops, something went wrong.
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
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
10 changes: 10 additions & 0 deletions
10
...-ggood/src/main/java/com/bang_ggood/checklist/dto/response/SelectedChecklistResponse.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,10 @@ | ||
package com.bang_ggood.checklist.dto.response; | ||
|
||
import com.bang_ggood.category.dto.response.SelectedCategoryQuestionsResponse; | ||
import com.bang_ggood.room.dto.response.SelectedRoomResponse; | ||
|
||
import java.util.List; | ||
|
||
public record SelectedChecklistResponse(SelectedRoomResponse room, List<SelectedOptionResponse> options, | ||
Integer score, List<SelectedCategoryQuestionsResponse> categories) { | ||
} |
10 changes: 10 additions & 0 deletions
10
...ang-ggood/src/main/java/com/bang_ggood/checklist/dto/response/SelectedOptionResponse.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,10 @@ | ||
package com.bang_ggood.checklist.dto.response; | ||
|
||
import com.bang_ggood.checklist.domain.Option; | ||
|
||
public record SelectedOptionResponse(Integer optionId, String optionName) { | ||
|
||
public static SelectedOptionResponse of(int optionId) { | ||
return new SelectedOptionResponse(optionId, Option.fromId(optionId).getName()); | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...g-ggood/src/main/java/com/bang_ggood/checklist/dto/response/SelectedQuestionResponse.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,17 @@ | ||
package com.bang_ggood.checklist.dto.response; | ||
|
||
import com.bang_ggood.checklist.domain.ChecklistQuestion; | ||
|
||
public record SelectedQuestionResponse(Integer questionId, String title, | ||
String subtitle, String grade, String memo) { | ||
|
||
public static SelectedQuestionResponse of(ChecklistQuestion checklistQuestion) { | ||
return new SelectedQuestionResponse( | ||
checklistQuestion.getQuestion().getId(), | ||
checklistQuestion.getQuestion().getTitle(), | ||
checklistQuestion.getQuestion().getSubtitle(), | ||
checklistQuestion.getGrade().name(), | ||
checklistQuestion.getMemo() | ||
); | ||
} | ||
} |
1 change: 0 additions & 1 deletion
1
...ood/src/main/java/com/bang_ggood/checklist/dto/response/UserChecklistPreviewResponse.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
1 change: 0 additions & 1 deletion
1
...od/src/main/java/com/bang_ggood/checklist/dto/response/UserChecklistsPreviewResponse.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
9 changes: 0 additions & 9 deletions
9
...g-ggood/src/main/java/com/bang_ggood/checklist/dto/response/WrittenChecklistResponse.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.