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

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

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

/**
 * 购物车完整数据（含统计）
 */
@Data
@Schema(description = "购物车")
public class CartVO implements Serializable {

    @Schema(description = "购物车项列表")
    private List<CartItemVO> items;

    @Schema(description = "商品总件数（含未选中）")
    private Integer totalCount;

    @Schema(description = "已选中商品件数")
    private Integer selectedCount;

    @Schema(description = "购物车总金额（含未选中）")
    private BigDecimal totalAmount;

    @Schema(description = "已选中商品总金额")
    private BigDecimal selectedAmount;

    @Schema(description = "全选状态：0-未全选 1-全选")
    private Integer allSelected;
}
