package shop.alien.entity.store.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 购物车商品项DTO
 *
 * @author system
 * @since 2025-01-XX
 */
@Data
@ApiModel(value = "CartItemDTO对象", description = "购物车商品项")
public class CartItemDTO {

    @ApiModelProperty(value = "菜品ID")
    private Integer cuisineId;

    @ApiModelProperty(value = "菜品名称")
    private String cuisineName;

    @ApiModelProperty(value = "菜品类型(1:单品, 2:套餐)")
    private Integer cuisineType;

    @ApiModelProperty(value = "菜品图片")
    private String cuisineImage;

    @ApiModelProperty(value = "单价")
    private BigDecimal unitPrice;

    @ApiModelProperty(value = "数量")
    private Integer quantity;

    @ApiModelProperty(value = "已下单数量（下单时锁定的数量，不允许减少或删除）")
    private Integer lockedQuantity;

    @ApiModelProperty(value = "小计金额")
    private BigDecimal subtotalAmount;

    @ApiModelProperty(value = "添加该菜品的用户ID")
    private Integer addUserId;

    @ApiModelProperty(value = "添加该菜品的用户手机号")
    private String addUserPhone;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "菜品标签（JSON数组，如：[\"招牌菜\",\"推荐\"]）")
    private String tags;
}
