package com.sckw.product.model.vo.res;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @desc: 商品列表
 * @author: yzc
 * @date: 2023-07-05 11:54
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
public class GoodsList {

    /**
     * 商品id
     */
    @Schema(description = "商品id")
    private Long id;

    /**
     * 商品编号
     */
    @Schema(description = "商品编号")
    private String code;

    /**
     * 状态:0草稿/1上架/2下架
     */
    @Schema(description = "状态:0草稿/1上架/2下架")
    private Integer status;

    /**
     * 状态label
     */
    @Schema(description = "状态label")
    private String statusLabel;

    /**
     * 商品名称
     */
    @Schema(description = "商品名称")
    private String name;

    /**
     * 商品缩略图
     */
    @Schema(description = "商品缩略图")
    private String thumb;

    /**
     * 商品类型
     */
    @Schema(description = "商品类型")
    private String goodsType;

    /**
     * 商品类型Label
     */
    @Schema(description = "商品类型Label")
    private String goodsTypeLabel;

    /**
     * 计量单位（吨、方、件、箱、其他）
     */
    @Schema(description = "计量单位（吨、方、件、箱、其他）")
    private String unit;

    /**
     * 计量单位lab
     */
    @Schema(description = "计量单位lab")
    private String unitLabel;

    /**
     * 尺寸大小
     */
    @Schema(description = "尺寸大小")
    private String spec;

    /**
     * 尺寸大小lab
     */
    @Schema(description = "尺寸大小")
    private String specLabel;

    /**
     * 库存数量
     */
    @Schema(description = "库存数量")
    private BigDecimal amount;


    /**
     * 仓储地址
     */
    @Schema(description = "仓储地址")
    private String address;

    /**
     * 客户经理
     */
    @Schema(description = "客户经理")
    private String manageName;


    /**
     * 上架时间
     */
    @Schema(description = "上架时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date addedTime;

    /**
     * 下架时间
     */
    @Schema(description = "下架时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date shelfTime;

    /**
     * 供应企业
     */
    @Schema(description = "供应企业")
    private String supplyEnt;

    /**
     * 创建人
     */
    @Schema(description = "创建人")
    private String createByName;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;

    /**
     * 价格单位
     */
    @Schema(description = "价格单位")
    private String priceUnit;

    /**
     * 轴数
     */
    @Schema(description = "轴数")
    private String carAxis;

    /**
     * 富文本内容
     */
    @Schema(description = "富文本内容")
    private String content;

    /**
     * 参考价格
     */
    @Schema(description = "参考价格")
    private BigDecimal price;



}
