File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
booklog/src/main/java/com/example/booklog/domain/users Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1818@ Tag (name = "마이페이지 - 캘린더(독서현황 AI 멘트)" , description = "캘린더 페이지 상단 AI 멘트(월별) 조회" )
1919@ RestController
2020@ RequiredArgsConstructor
21- @ RequestMapping ("/api/v1/me" )
21+ @ RequestMapping ("/api/v1/me/reading-calendar " )
2222public class MeCalendarReadingStatusController {
2323
2424 private final CalendarReadingStatusService calendarReadingStatusService ;
2525
2626 @ Operation (summary = "캘린더 AI 멘트 조회" , description = "month=YYYY-MM" )
27- @ GetMapping ("/reading-status " )
27+ @ GetMapping ("/insight " )
2828 public ApiResponse <CalendarReadingStatusResponse > getCalendarReadingStatus (
2929 @ AuthenticationPrincipal CustomUserDetails userDetails ,
3030 @ RequestParam @ DateTimeFormat (pattern = "yyyy-MM" ) YearMonth month
Original file line number Diff line number Diff line change 11package com .example .booklog .domain .users .repository ;
22
3+ import com .example .booklog .domain .users .entity .Users ;
34import com .example .booklog .domain .users .repository .projection .MonthlyStatusCountProjection ;
5+ import org .springframework .data .jpa .repository .JpaRepository ;
46import org .springframework .data .jpa .repository .Query ;
5- import org .springframework .data .repository .Repository ;
67import org .springframework .data .repository .query .Param ;
78
89import java .time .LocalDate ;
910import java .util .List ;
1011
11- public interface ReadingStatusQueryRepository extends Repository < Object , Long > {
12+ public interface ReadingStatusQueryRepository extends JpaRepository < Users , Long > {
1213
1314 /**
1415 * 이번 달에 reading_logs(read_date)가 존재하는 user_books만 대상으로
You can’t perform that action at this time.
0 commit comments