Skip to content

Commit

Permalink
api specify
Browse files Browse the repository at this point in the history
  • Loading branch information
DamWon-KIM committed Feb 24, 2024
1 parent 0ac1697 commit 70ea5a7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
@NoArgsConstructor
@AllArgsConstructor
public class HomeEducationDataDTO {
private Long educationId;
private String educationName;
private String educationDescription;
private String educationDetail;
private List<String> images;
private Long id;
private String title;
private String description;
private String thumbUrl;
private String detail;
private List<String> images;
private int solvedQuizCount;
private int totalQuizCount;
}
10 changes: 5 additions & 5 deletions src/main/java/gsc/backend/service/EducationService.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ public List<HomeEducationDataDTO> getHomeData(String userUuid) {
.collect(Collectors.toList());

return HomeEducationDataDTO.builder()
.educationId(m.getId())
.educationName(m.getName())
.educationDescription(m.getDescription())
.educationDetail(m.getDetail())
.images(images) // detail 정보에 들어가는 images
.id(m.getId())
.title(m.getName())
.description(m.getDescription())
.thumbUrl(m.getImage()) // thumbUrl
.detail(m.getDetail())
.images(images) // detail 정보에 들어가는 images
.solvedQuizCount(userEducation.getUserSolvedQuizCount())
.totalQuizCount(m.getTotalQuizCount())
.build();
Expand Down

0 comments on commit 70ea5a7

Please sign in to comment.