Skip to content

Commit

Permalink
[#25] fix: change EventResponseDto
Browse files Browse the repository at this point in the history
  • Loading branch information
raae7742 committed Jun 5, 2022
1 parent 5f345dd commit adae433
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,9 @@
@Getter
@Setter
public class EventResponseDto {
private Long eid;
private String title;
private String description;
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "Asia/Seoul")
private LocalDate date;

public EventResponseDto(Event event) {
this.eid = event.getEid();
this.title = event.getTitle();

// [이름] 제거
Expand All @@ -26,8 +21,5 @@ public EventResponseDto(Event event) {
this.title = this.title.substring(1);
this.title = this.title.substring(1);
}

this.description = event.getDescription();
this.date = event.getDate();
}
}

0 comments on commit adae433

Please sign in to comment.