package com.ruoyi.mall.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.basic.domain.model.BaseAudit;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 商品信息对象 pms_product
 *
 * @author zcc
 */
@ApiModel(description="商品信息对象")
@Data
@TableName("mall_product")
public class Product extends BaseAudit {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("ID")
    private Long id;

    @ApiModelProperty("BRAND_ID")
    private Long brandId;

    @ApiModelProperty("CATEGORY_ID")
    private Long categoryId;

    @ApiModelProperty("商品编码")
    private String outProductId;

    @ApiModelProperty("NAME")
    private String name;

    @ApiModelProperty("主图")
    private String pic;

    @ApiModelProperty("画册图片，连产品图片限制为5张，以逗号分割")
    private String albumPics;

    @ApiModelProperty("上架状态：0->下架；1->上架")
    private Integer publishStatus;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("PRICE")
    private BigDecimal price;

    @ApiModelProperty("单位")
    private String unit;

    @ApiModelProperty("商品重量，默认为克")
    private BigDecimal weight;

    @ApiModelProperty("商品销售属性，json格式")
    private String productAttr;

    @ApiModelProperty("产品详情网页内容")
    private String detailHtml;

    @ApiModelProperty("移动端网页详情")
    private String detailMobileHtml;

    @ApiModelProperty("品牌名称")
    private String brandName;

    @ApiModelProperty("商品分类名称")
    private String productCategoryName;

    //    0->商品；1->课程
    private Integer isCourse;

    private Long courseId;
    /**
     * 客服id
     */
    private Long customerService;
    /**
     * 教练id
     */
    private Long instructor;
    private Long storeId;

    @TableField(exist = false)
    private String storeName;

}
