Skip to content

Commit

Permalink
Merge pull request #74 from Nook-Book/develop
Browse files Browse the repository at this point in the history
[DEPLOY]
  • Loading branch information
jisujeong0 authored Jan 20, 2025
2 parents be2b145 + 847d5ad commit f8cd43d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ public ResponseEntity<?> getTimerRecords(UserPrincipal userPrincipal, Long bookI
List<TimerRecordRes> timerRecordRes = timerList.stream()
.map(timer -> TimerRecordRes.builder()
.timerId(timer.getTimerId())
.date(timer.getCreatedAt())
.date(timer.getCreatedAt().toLocalDate())
.time(timer.getCreatedAt().toLocalTime())
.readTime(convertBigIntegerToString(timer.getReadTime()))
.build())
.toList();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
import lombok.Getter;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.time.LocalDate;
import java.time.LocalTime;

@Getter
@Builder
Expand All @@ -17,8 +18,11 @@ public class TimerRecordRes {
@Schema(type = "Long", example = "1", description = "λ…μ„œ 기둝 μ‹œκ°„μ˜ id")
public Long timerId;

@Schema(type = "LocalDateTime", example = "2024-11-05 21:13:56.564098", description = "타이머λ₯Ό μ’…λ£Œν•œ μΌμ‹œμž…λ‹ˆλ‹€.")
public LocalDateTime date;
@Schema(type = "LocalDate", example = "2024-11-05", description = "타이머λ₯Ό μ’…λ£Œν•œ μΌμžμž…λ‹ˆλ‹€.")
public LocalDate date;

@Schema(type = "LocalTime", example = "21:13:56.564098", description = "타이머λ₯Ό μ’…λ£Œν•œ μ‹œκ°„μž…λ‹ˆλ‹€.")
private LocalTime time;

@Schema(type = "String", example = "01:20:00", description = "λ…μ„œ μ‹œκ°„μž…λ‹ˆλ‹€. HH:MM:SS ν˜•μ‹μž…λ‹ˆλ‹€.")
public String readTime;
Expand Down

0 comments on commit f8cd43d

Please sign in to comment.