package io.modules.item.dto;

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

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 购物车
 *
 * @author Mark #
 * @since 1.0.0 2025-03-12
 */
@Data
@Schema(name = "购物车")
public class CartDTO implements Serializable {
    private static final long serialVersionUID = 1L;

	@SchemaProperty(name = "编号")
	private Long id;

	@SchemaProperty(name = "用户ID")
	private Long userId;

	@SchemaProperty(name = "商品ID")
	private Long productId;

	@SchemaProperty(name = "商品数量")
	private Integer quantity;

	@SchemaProperty(name = "创建时间")
	private Date createdTime;

	@SchemaProperty(name = "加入时价格")
	private BigDecimal price;
	private CertificatesDTO item;


}
