package com.wzj.soopin.member.domain.vo;

import com.wzj.soopin.member.annotation.MemberFillField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.dromara.common.excel.annotation.Excel;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 购物车 数据视图对象
 *
 * @author zcc
 */
@Data
@Schema(description = "购物车")
public class MemberCartVO {
    /**
     * 购物车表ID
     */
    @Schema(description = "id")
    private Long id;
    /**
     * 0->失效；1->有效
     */
    @Excel(name = "0->失效；1->有效")
    @Schema(description = "status")
    private Integer status;
    /**
     * 用户ID
     */
    @Excel(name = "用户ID")
    @Schema(description = "用户ID")
    private Long memberId;

    @Schema(description ="会员")
    @Excel(name = "会员")
    @MemberFillField(id = "memberId")
    private MemberVO member;



    @Excel(name = "备注")
    @Schema(description = "备注")
    private String mark;
    /**
     * 商品ID
     */
    @Excel(name = "商品ID")
    @Schema(description = "商品ID")
    private Long productId;
    /**
     * 展示图片
     */
    @Schema(description = "展示图片")
    @Excel(name = "展示图片")
    private String pic;
    /**
     * SKU ID
     */
    @Schema(description = "SKU ID")
    @Excel(name = "SKU ID")
    private Long skuId;
    /**
     * PRODUCT_NAME
     */
    @Schema(description = "PRODUCT_NAME")
    @Excel(name = "PRODUCT_NAME")
    private String productName;
    /**
     * 商品属性
     */
    @Schema(description = "商品属性")
    @Excel(name = "商品属性")
    private String spData;
    /**
     * 商品数量
     */
    @Excel(name = "商品数量")
    @Schema(description = "商品数量")
    private Integer quantity;
    /**
     * 加入时间
     */
    @Excel(name = "加入时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "加入时间")
    private LocalDateTime createTime;
    /**
     * sku价格
     */
    @Excel(name = "sku价格")
    @Schema(description = "sku价格")
    private BigDecimal price;
    /**
     * sku是否存在
     */
    @Excel(name = "sku是否存在")
    @Schema(description = "sku是否存在")
    private Integer skuIfExist;
    /**
     * 隐藏四位的手机号
     */
    @Excel(name = "隐藏四位的手机号")
    @Schema(description = "隐藏四位的手机号")
    private String phoneHidden;
}
