Skip to content

Commit c5c38dd

Browse files
committed
docs: 주석 수정 및 import 클래스명 수정
1 parent ce726c1 commit c5c38dd

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/main/java/com/back/domain/study/record/controller/StudyRecordController.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
@RestController
2121
@RequiredArgsConstructor
2222
@RequestMapping("/api/plans/records")
23-
@Tag(name = "StudyPlan", description = "학습 계획 관련 API")
23+
@Tag(name = "StudyRecord", description = "학습 조회 관련 API")
2424
public class StudyRecordController {
2525
private final StudyRecordService studyRecordService;
2626

@@ -40,6 +40,8 @@ public ResponseEntity<RsData<StudyRecordResponseDto>> createStudyRecord(
4040
// ======================= 조회 ======================
4141
// 일별 학습 기록 조회
4242
@GetMapping
43+
@Operation( summary = "학습 기록 조회",
44+
description = "날짜별 기록을 조회합니다.")
4345
public ResponseEntity<RsData<List<StudyRecordResponseDto>>> getDailyStudyRecord(
4446
@AuthenticationPrincipal CustomUserDetails user,
4547
@RequestParam("date") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate date

src/main/java/com/back/domain/study/record/service/StudyRecordService.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,15 +197,15 @@ private List<StudyPlan> getTodayStudyPlans(Long userId, LocalDate date) {
197197

198198
// ===================== 유틸 =====================
199199
// 시간 범위 검증
200-
private void validateTimeRange(java.time.LocalDateTime startTime, java.time.LocalDateTime endTime) {
200+
private void validateTimeRange(LocalDateTime startTime, LocalDateTime endTime) {
201201
if (startTime.isAfter(endTime) || startTime.isEqual(endTime)) {
202202
throw new CustomException(ErrorCode.INVALID_TIME_RANGE);
203203
}
204204
}
205205

206206
// 일시정지 시간이 학습 시간 내에 있는지 검증
207-
private void validatePauseInStudyRange(java.time.LocalDateTime studyStart, java.time.LocalDateTime studyEnd,
208-
java.time.LocalDateTime pauseStart, java.time.LocalDateTime pauseEnd) {
207+
private void validatePauseInStudyRange(LocalDateTime studyStart, LocalDateTime studyEnd,
208+
LocalDateTime pauseStart, LocalDateTime pauseEnd) {
209209
if (pauseStart.isBefore(studyStart) || pauseEnd.isAfter(studyEnd)) {
210210
throw new CustomException(ErrorCode.INVALID_TIME_RANGE);
211211
}

0 commit comments

Comments
 (0)