| package com.matrix.system.app.dto; | 
|   | 
| import io.swagger.annotations.ApiModel; | 
| import io.swagger.annotations.ApiModelProperty; | 
|   | 
| import javax.validation.constraints.NotBlank; | 
| import javax.validation.constraints.NotNull; | 
|   | 
| /** | 
|  * @author wzy | 
|  * @date 2020-12-23 | 
|  **/ | 
| @ApiModel(value = "CreateOderItemDto", description = "提交订单明细接收类") | 
| public class CreateOderItemDto { | 
|   | 
|     @NotNull(message = "商品ID不能为空") | 
|     @ApiModelProperty(value = "商品ID", example = "1234") | 
|     private Long goodsId; | 
|   | 
|     @NotNull(message = "数量不能为空") | 
|     @ApiModelProperty(value = "购买数量", example = "1") | 
|     private Integer count; | 
|   | 
|     @NotNull(message = "参数错误") | 
|     @ApiModelProperty(value = "是否赠送 是/否", example = "否") | 
|     private String isFree; | 
|   | 
|     @NotNull(message = "参数错误") | 
|     @ApiModelProperty(value = "商品类型", example = "家居产品") | 
|     private String goodsType; | 
|   | 
|     public String getGoodsType() { | 
|         return goodsType; | 
|     } | 
|   | 
|     public void setGoodsType(String goodsType) { | 
|         this.goodsType = goodsType; | 
|     } | 
|   | 
|     public Long getGoodsId() { | 
|         return goodsId; | 
|     } | 
|   | 
|     public void setGoodsId(Long goodsId) { | 
|         this.goodsId = goodsId; | 
|     } | 
|   | 
|     public Integer getCount() { | 
|         return count; | 
|     } | 
|   | 
|     public void setCount(Integer count) { | 
|         this.count = count; | 
|     } | 
|   | 
|     public String getIsFree() { | 
|         if ("1".equals(isFree)) { | 
|             return "是"; | 
|         } else { | 
|             return "否"; | 
|         } | 
|     } | 
|   | 
|     public void setIsFree(String isFree) { | 
|         this.isFree = isFree; | 
|     } | 
| } |