Skip to content

Commit

Permalink
Refactor: ClubScheduleResponse의 시간 반환에서 초단위 제외하고 보내기
Browse files Browse the repository at this point in the history
  • Loading branch information
kimh7537 committed Aug 23, 2024
1 parent 1e6c3e0 commit 4457e22
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.cotato.squadus.api.schedule.dto;

import com.cotato.squadus.domain.club.schedule.entity.ClubSchedule;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.time.LocalDate;
import java.time.LocalTime;
Expand All @@ -14,7 +15,11 @@ public record ClubScheduleResponse(
String location,
String equipment,
LocalDate date,

@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "HH:mm")
LocalTime startTime,

@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "HH:mm")
LocalTime endTime
) {
public static ClubScheduleResponse from(ClubSchedule schedule) {
Expand Down

0 comments on commit 4457e22

Please sign in to comment.