package com.fzm.mall.server.admin.goods_center.entity.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author wangp
 * @description 商品
 * @date 2020/8/26 17:33
 */
@Data
public class GoodsSpuVO {

    /**
     * 1.是，自动生成Token 2.是，使用外部既有Token
     */
    public static final Integer COMMODITY_PASS_AUTO = 1;

    public static final Integer COMMODITY_PASS_OUT = 2;

    private String goodsId;
    private String name;
    private String thumb;
    private Integer status;
    private BigDecimal maxPrice;
    private BigDecimal defaultPrice;
    private Long stock = 0L;
    private Long sales = 0L;
    private String enterpriseName;
    private String linkName;
    private String linkPhone;
    private String checkFailReason;
    private Integer type;
    private Long createTime;
    private Integer salesType;

    @ApiModelProperty(value = "1.是，自动生成Token 2.是，使用外部既有Token")
    @TableField(exist = false)
    private Integer commodityPass;

    @ApiModelProperty(value = "tokenId")
    @TableField(exist = false)
    private Long tokenId;

    @ApiModelProperty(value = "tokenIdStr")
    @TableField(exist = false)
    private String tokenIdStr;

}
