package com.gxwebsoft.shop.vo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.gxwebsoft.shop.entity.Cart;
import com.gxwebsoft.shop.entity.Merchant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

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

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "Cart对象", description = "购物车")
@TableName("shop_cart")
public class CartVo implements Serializable {

    @ApiModelProperty("店铺列表")
    private List<CartShopVo> shops;

    @ApiModelProperty(value = "购物车总金额")
    private BigDecimal totalPrice;

    @ApiModelProperty(value = "宝贝数量")
    private Long totalNums;

    @ApiModelProperty(value = "已选中宝贝")
    private Long selectNums;

    @Data
    public static class Payload {
      private List<CartShopVo> shops;
      private BigDecimal totalPrice;
      private Long totalNums;
      private Long selectNums;
    }
}
