package com.izouma.dingdong.dto;

import com.izouma.dingdong.domain.merchant.GoodsSpecification;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel(value = "订单商品及规格", description = "订单商品及规格")
public class GoodsSpecDTO {
/*    @ApiModelProperty(value = "订单ID", name = "orderId")
    private Long orderId;*/

    @ApiModelProperty(value = "商品ID", name = "goodsId")
    private Long goodsId;

//    private String goodsName;

    @ApiModelProperty(value = "规格", name = "specification")
    private List<GoodsSpecification> specification;

    @ApiModelProperty(value = "数量", name = "num")
    private Integer num;

    @ApiModelProperty(value = "商品价格", name = "goodsPrice")
    private BigDecimal goodsPrice;

}
