package com.snack.server.module.order.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 订单商品项 VO
 */
@Data
@Schema(description = "订单商品项")
public class OrderItemVO implements Serializable {

    @Schema(description = "订单项 ID")
    private Long id;

    @Schema(description = "商品 SPU ID")
    private Long productId;

    @Schema(description = "商品名")
    private String productName;

    @Schema(description = "商品主图")
    private String productImage;

    @Schema(description = "SKU ID")
    private Long skuId;

    @Schema(description = "SKU 规格")
    private String skuName;

    @Schema(description = "成交单价")
    private BigDecimal price;

    @Schema(description = "购买数量")
    private Integer quantity;

    @Schema(description = "小计金额")
    private BigDecimal totalAmount;
}
