package com.pj.tb_goods_cart.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @Author Mechrevo
 * @Date 2023 08 04 16 27
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class GoodsCartVo {

    /**
     * 店铺名
     */
    private String shopName;

    /**
     * 重量
     */
    private String netWeight;
    /**
     * 毛量
     */
    private String grossWeight;

    @NotNull(message = "id")
    private String id;

    /**
     * 商家ID
     */
    @NotNull(message = "enterpriseId")
    private Long enterpriseId;

    /**
     *
     */
    @NotNull(message = "shopId")
    private Long shopId;

    /**
     *
     */
    private Long tradeAreaId;

    private String goodsImg;

    private String goodsName;

    private Integer buyNum;
    private Integer goodsIsorderStatus;

    /**
     *
     */
    private Long buyUserId;

    /**
     * 购买金额
     */
    private Double totalPrice;

    /**
     * tb_goods表ID
     */
    private Long saleGoodsInfoId;

    /**
     * 商品重量
     */
    private Double buyWeight;

    /**
     *
     */
    private String buyUserType;

    /**
     * 购买方式(2=互助组,3=个人购买)
     */
    private Integer buyType;

    /**
     * 分配方式
     */
    private Integer distribution;

    /**
     * tb_goods_transit表ID
     */
    private Long publishGoodsId;

    /**
     * 商品重量单位
     */
    private String goodsUnit;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    /**
     * 创建人编号
     */
    private String createBy;

    /**
     * 创建人名称
     */
    private String createName;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updateTime;

    /**
     * 更新人编号
     */
    private String updateBy;

    /**
     * 更新人名称
     */
    private String updateName;

    /**
     * 删除状态(0=禁用,1=启用)
     */
    private Integer deleteStatus;


}
