-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from Timetris-Trendithon/mainpage
π¨Style: λ©μΈνμ΄μ§μμ νμν μκ° μμλ§ return
- Loading branch information
Showing
4 changed files
with
57 additions
and
8 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
src/main/java/com/trendithon/timetris/domain/mainpage/dto/DoTimeDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.trendithon.timetris.domain.mainpage.dto; | ||
|
||
import com.trendithon.timetris.domain.mainpage.domain.Do; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.time.LocalTime; | ||
|
||
@Getter | ||
@Builder | ||
@AllArgsConstructor @NoArgsConstructor | ||
public class DoTimeDTO { | ||
|
||
private int hour; | ||
private int minute; | ||
|
||
public static DoTimeDTO of(LocalTime localTime){ | ||
return DoTimeDTO.builder() | ||
.hour(localTime.getHour()) | ||
.minute(localTime.getMinute()) | ||
.build(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/main/java/com/trendithon/timetris/domain/mainpage/dto/PlanTimeDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.trendithon.timetris.domain.mainpage.dto; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.time.LocalTime; | ||
|
||
@Getter | ||
@Builder | ||
@AllArgsConstructor @NoArgsConstructor | ||
public class PlanTimeDTO { | ||
|
||
private int hour; | ||
|
||
public static PlanTimeDTO of(LocalTime localTime){ | ||
return PlanTimeDTO.builder() | ||
.hour(localTime.getHour()) | ||
.build(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters