Skip to content

Commit

Permalink
[FIX] 봉사 시각 LocalDateTime에서 LocalTime으로 변경 (#187)
Browse files Browse the repository at this point in the history
fix: LocalDateTime을 LocalTime으로 변경
  • Loading branch information
Profile-exe authored Nov 5, 2024
1 parent 520abe4 commit dc5c416
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions src/main/java/econo/buddybridge/post/dto/PostReqDto.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
import econo.buddybridge.post.entity.ScheduleType;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Builder;

import java.time.LocalDateTime;
import java.time.LocalTime;
import lombok.Builder;

@Builder
public record PostReqDto(
Expand Down Expand Up @@ -55,10 +55,10 @@ public record PostReqDto(
Integer age,

@NotNull(message = "봉사 시작 시간을 입력해주세요.")
LocalDateTime assistanceStartTime,
LocalTime assistanceStartTime,

@NotNull(message = "봉사 종료 시간을 입력해주세요.")
LocalDateTime assistanceEndTime,
LocalTime assistanceEndTime,

@NotNull(message = "모집 인원을 입력해주세요.")
Integer headcount
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/econo/buddybridge/post/dto/PostResDto.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
import econo.buddybridge.post.entity.PostStatus;
import econo.buddybridge.post.entity.PostType;
import econo.buddybridge.post.entity.ScheduleType;
import lombok.Builder;

import java.time.LocalDateTime;
import java.time.LocalTime;
import lombok.Builder;

@Builder
public record PostResDto(
Expand All @@ -32,8 +32,8 @@ public record PostResDto(
DisabilityType disabilityType,
Gender gender,
Integer age,
LocalDateTime assistanceStartTime,
LocalDateTime assistanceEndTime,
LocalTime assistanceStartTime,
LocalTime assistanceEndTime,
Integer headcount,
Integer matchingDoneCount,
Boolean isLiked
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
import econo.buddybridge.post.entity.AssistanceType;
import econo.buddybridge.post.entity.District;
import econo.buddybridge.post.entity.ScheduleType;
import lombok.Builder;

import java.time.LocalDateTime;
import java.time.LocalTime;
import lombok.Builder;

@Builder
public record PostUpdateReqDto(
Expand All @@ -22,8 +22,9 @@ public record PostUpdateReqDto(
DisabilityType disabilityType,
Gender gender,
Integer age,
LocalDateTime assistanceStartTime,
LocalDateTime assistanceEndTime,
LocalTime assistanceStartTime,
LocalTime assistanceEndTime,
Integer headcount
) {

}
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
package econo.buddybridge.post.entity;

import jakarta.persistence.Embeddable;
import java.time.LocalTime;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Embeddable
@Getter
@NoArgsConstructor(access = AccessLevel.PROTECTED)
Expand All @@ -18,6 +17,6 @@
@EqualsAndHashCode
public class AssistanceTime {

LocalDateTime assistanceStartTime;
LocalDateTime assistanceEndTime;
LocalTime assistanceStartTime;
LocalTime assistanceEndTime;
}

0 comments on commit dc5c416

Please sign in to comment.