From c406e478e65ab6995ae0df6bac63fe86a7795ef2 Mon Sep 17 00:00:00 2001 From: Amirhossein Arabzadeh Date: Sat, 3 Aug 2024 18:17:16 +0330 Subject: [PATCH] add review --- .../com/dishDash/common/dto/ReviewDto.java | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 common/src/main/java/com/dishDash/common/dto/ReviewDto.java diff --git a/common/src/main/java/com/dishDash/common/dto/ReviewDto.java b/common/src/main/java/com/dishDash/common/dto/ReviewDto.java new file mode 100644 index 0000000..1eb35aa --- /dev/null +++ b/common/src/main/java/com/dishDash/common/dto/ReviewDto.java @@ -0,0 +1,25 @@ +package com.dishDash.common.dto; + +import javax.persistence.*; + +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.*; + +@Data +@Builder +@AllArgsConstructor +@NoArgsConstructor +public class ReviewDto { + + @JsonProperty("id") + private long id; + + @JsonProperty("comment") + private String comment; + + @JsonProperty("customer_id") + private long customerId; + + @JsonProperty("order_id") + private long orderId; +}