package com.seer.teach.mall.api.resp;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 订单项数据传输对象
 * 用于封装订单中单个商品项的详细信息
 */
@Data
public class OrderItemDTO {

    @Schema(description = "订单子项Id")
    private Integer id;

    @Schema(description = "订单Id")
    private Integer orderId;

    @Schema(description = "订单商品Id")
    private Integer goodsId;

    @Schema(description = "子订单Id")
    private Integer childOrderId;

    @Schema(description = "相同商品的数量")
    private Integer number;

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

    @Schema(description = "零售价格")
    private BigDecimal price;

    /**
     * 学豆
     */
    private BigDecimal coin;

    @Schema(description = "`sku_id`")
    private Integer skuId;

    @Schema(description = "图片链接")
    private String picUrl;

    @Schema(description = "评价状态，1：已评价，0：为评价")
    private Integer commentStatus;
}