Skip to content

Commit

Permalink
Merge pull request #20 from khu-bigdata-project-team-5/feat/1
Browse files Browse the repository at this point in the history
[Feat] Top 10 ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์–ธ์–ด ์กฐํšŒ API
  • Loading branch information
yxhwxn authored Jun 13, 2024
2 parents a01ad19 + 24b8623 commit ebfcfaf
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/main/java/khu/bigdata/infou/implement/LectureService.java
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,7 @@ public LectureResponseDTO.OtherLectureListDto findOtherLectureList() {
return null;
}

public LectureResponseDTO.TopProgrammingLanguageList findTopProgrammingLanguages() {
return null;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,10 @@ public ResponseEntity<LectureResponseDTO.OtherLectureListDto> getOtherLectureLis
) {
return ResponseEntity.ok(lectureService.findOtherLectureList());
}

@GetMapping("/top10")
@Operation(summary = "ํ˜„์žฌ ๊ฐ€์žฅ ์žˆ๊ธฐ ์žˆ๋Š” ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์–ธ์–ด ์ˆœ์œ„ Top 10")
public ResponseEntity<LectureResponseDTO.TopProgrammingLanguageList> getTopProgrammingLanguages() {
return ResponseEntity.ok(lectureService.findTopProgrammingLanguages());
}
}
18 changes: 17 additions & 1 deletion src/main/java/khu/bigdata/infou/web/dto/LectureResponseDTO.java
Original file line number Diff line number Diff line change
Expand Up @@ -154,5 +154,21 @@ public static class OtherLectureListDto {
private List<OtherLectureListInfo> otherLectureList; // ๊ฐ•์˜ ์ •๋ณด ๊ด€๋ จ
}


@Builder
@Getter
@NoArgsConstructor
@AllArgsConstructor
public static class TopProgrammingLanguageList {

private String top1;
private String top2;
private String top3;
private String top4;
private String top5;
private String top6;
private String top7;
private String top8;
private String top9;
private String top10;
}
}

0 comments on commit ebfcfaf

Please sign in to comment.