Skip to content

Commit

Permalink
update: Updated OrderCreateRequestDTO
Browse files Browse the repository at this point in the history
  • Loading branch information
koreanMike513 committed Dec 29, 2024
1 parent 58be4df commit 0571be1
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,24 @@
import com.f_lab.la_planete.domain.Order;
import com.f_lab.la_planete.domain.OrderStatus;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Getter
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class OrderCreateRequestDTO {

@JsonProperty("food_id")
private Long foodId;

private BigDecimal price;

private int quantity;

public Order toEntity(Food food) {
Expand Down

0 comments on commit 0571be1

Please sign in to comment.