Skip to content

Commit

Permalink
refactor(ReservationRequest): RequestBody를 통해 정보를 받을 때 time은 Long 형으로 받기
Browse files Browse the repository at this point in the history
  • Loading branch information
developowl committed Nov 27, 2024
1 parent bdc553f commit fbed97d
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
package roomescape.model.reservation;

import roomescape.model.time.Time;

public class ReservationRequest {
private String name;
private String date;
private Time time;
private Long time;

public ReservationRequest(String name, String date, Time time) {
public ReservationRequest(String name, String date, Long time) {
this.name = name;
this.date = date;
this.time = time;
Expand All @@ -21,7 +19,7 @@ public String getDate() {
return date;
}

public Time getTime() {
public Long getTime() {
return time;
}
}

0 comments on commit fbed97d

Please sign in to comment.