From 3b45f6c732a828d3be911524b823c6ec3008ec48 Mon Sep 17 00:00:00 2001 From: paragon0107 Date: Wed, 15 Jan 2025 17:22:02 +0900 Subject: [PATCH] =?UTF-8?q?[CHORE]=20dto=EB=8D=B0=EC=9D=B4=ED=84=B0?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../response/TimeBlockTagServiceResponse.java | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/tiki/server/timeblock/service/dto/response/TimeBlockTagServiceResponse.java b/src/main/java/com/tiki/server/timeblock/service/dto/response/TimeBlockTagServiceResponse.java index 6552ee75..8ccfaf97 100644 --- a/src/main/java/com/tiki/server/timeblock/service/dto/response/TimeBlockTagServiceResponse.java +++ b/src/main/java/com/tiki/server/timeblock/service/dto/response/TimeBlockTagServiceResponse.java @@ -1,16 +1,27 @@ package com.tiki.server.timeblock.service.dto.response; +import com.tiki.server.timeblock.entity.BlockType; import com.tiki.server.timeblock.entity.TimeBlock; import jakarta.validation.constraints.NotNull; +import java.time.LocalDate; + public record TimeBlockTagServiceResponse( @NotNull long id, @NotNull String name, - @NotNull String color + @NotNull String color, + @NotNull BlockType blockType, + @NotNull LocalDate startDate ) { - public static TimeBlockTagServiceResponse from(final TimeBlock timeBlock){ - return new TimeBlockTagServiceResponse(timeBlock.getId(), timeBlock.getName(), timeBlock.getColor()); + public static TimeBlockTagServiceResponse from(final TimeBlock timeBlock) { + return new TimeBlockTagServiceResponse( + timeBlock.getId(), + timeBlock.getName(), + timeBlock.getColor(), + timeBlock.getType(), + timeBlock.getStartDate() + ); } } \ No newline at end of file