Skip to content

Commit

Permalink
Merge pull request #85 from Jhsysng/main
Browse files Browse the repository at this point in the history
feat: rand insight 1
  • Loading branch information
Jhsysng authored Jun 29, 2024
2 parents 153a0d3 + d205549 commit 299be76
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,14 @@ public ResponseEntity<String> uploadImage(final @AuthenticationPrincipal Princip
}

@Operation(summary = "์ž„์‹œ ์ถ”์ฒœ ์ธ์‚ฌ์ดํŠธ", description = "๋žœ๋ค์œผ๋กœ ์ธ์‚ฌ์ดํŠธ 5๊ฐœ ๋ฐ˜ํ™˜")
@GetMapping("/recommend/rand")
public ResponseEntity<List<InsightRecommend>> randRecommendInsight(final @AuthenticationPrincipal PrincipalDetails principalDetails){
@GetMapping("/recommend/rands")
public ResponseEntity<List<InsightRecommend>> randRecommendInsights(final @AuthenticationPrincipal PrincipalDetails principalDetails){
return ResponseEntity.ok().body(insightService.getRandRecommendInsight());
}

@Operation(summary = "์ž„์‹œ ์ถ”์ฒœ ์ธ์‚ฌ์ดํŠธ ๋‹จ๊ฑด", description = "๋žœ๋ค์œผ๋กœ ์ธ์‚ฌ์ดํŠธ 1๊ฐœ ๋ฐ˜ํ™˜")
@GetMapping("/recommend/rand")
public ResponseEntity<InsightRecommend> randRecommendInsight(final @AuthenticationPrincipal PrincipalDetails principalDetails){
return ResponseEntity.ok().body(insightService.getRandRecommendInsight().get(0));
}
}

0 comments on commit 299be76

Please sign in to comment.