Skip to content

Commit

Permalink
🐛 Add request dto NotBlank
Browse files Browse the repository at this point in the history
  • Loading branch information
nowgnas committed Nov 23, 2023
1 parent 3449fb4 commit f380667
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/main/java/kr/bb/product/dto/request/ProductRequestData.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package kr.bb.product.dto.request;

import java.util.List;
import javax.validation.constraints.NotBlank;
import kr.bb.product.vo.FlowersRequestData;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
Expand All @@ -13,15 +14,15 @@
@NoArgsConstructor(access = AccessLevel.PROTECTED)
@AllArgsConstructor
public class ProductRequestData {
private String productName;
private String productSummary;
private String productDescriptionImage;
private String productThumbnail;
private Long productPrice;
@NotBlank private String productName;
@NotBlank private String productSummary;
@NotBlank private String productDescriptionImage;
@NotBlank private String productThumbnail;
@NotBlank private Long productPrice;
private Long categoryId;
private Long storeId;
@NotBlank private Long storeId;
private List<Long> productTag;
private FlowersRequestData representativeFlower;
@NotBlank private FlowersRequestData representativeFlower;
private List<FlowersRequestData> flowers;

public void setStoreId(Long storeId) {
Expand Down

0 comments on commit f380667

Please sign in to comment.