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;
import java.util.List;

/**
 * @desc: 商品详情响应
 * @author: yzc
 * @date: 2023-07-05 11:49
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
@Schema(description = "商品详情")
public class GoodsDetailVo {

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

    /**
     * 企业id
     */
    @Schema(description = "企业id")
    private Long entId;

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

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

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

    /**
     * 商品类型集合
     */
    @Schema(description = "商品类型集合")
    private List<String> goodsTypes;

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

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

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

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

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

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

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

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

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

    /**
     * 预付款最低限额
     */
    @Schema(description = "预付款最低限额")
    private BigDecimal advancePrice;

    /**
     * 专属客户经理id
     */
    @Schema(description = "专属客户经理id")
    private Long manager;

    /**
     * 专属客户经理姓名
     */
    @Schema(description = "专属客户经理姓名")
    private String managerName;

    /**
     * 成交量
     */
    @Schema(description = "成交量")
    private BigDecimal performedAmount;

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

    /**
     * 上架时间
     */
    @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 remark;

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

    /**
     * 状态label
     */
    @Schema(description = "状态label")
    private String statusLabel;
    @Schema(description = "签约价")
    private BigDecimal signPrice;

    @Schema(description = "是否签约")
    private boolean signFlag;
    @Schema(description = "供应商信息")
    private GoodsEntInfo goodsEntInfo;

    /**
     * 商品详情图片
     */
    @Schema(description = "商品详情图片")
    private List<GoodsImagesDetail> images;

    /**
     * 地址信息
     */
    @Schema(description = "商品发货地址信息")
    private AddressInfoDetail addressInfo;

    /**
     * 参数目录
     */
    @Schema(description = "参数目录")
    private List<GoodsAttributesDetail> attributes;



}
