package org.jeecg.modules.oroqen.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

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

/**
 * @Description: 产品
 * @Author: jeecg-boot
 * @Date: 2025-01-08
 * @Version: V1.0
 */
@Data
@TableName("oroqen_product")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(description = "产品")
public class OroqenProduct implements Serializable {
    private static final long serialVersionUID = 1L;

    /**主键*/
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "主键")
    private String id;

    /**产品名称*/
    @Excel(name = "产品名称", width = 15)
    @Schema(description = "产品名称")
    private String productName;

    /**产品编码*/
    @Excel(name = "产品编码", width = 15)
    @Schema(description = "产品编码")
    private String productCode;

    /**分类ID*/
    @Excel(name = "分类ID", width = 15)
    @Schema(description = "分类ID")
    private String categoryId;

    /**价格*/
    @Excel(name = "价格", width = 15)
    @Schema(description = "价格")
    private BigDecimal price;

    /**库存*/
    @Excel(name = "库存", width = 15)
    @Schema(description = "库存")
    private Integer stock;

    /**主图*/
    @Excel(name = "主图", width = 15)
    @Schema(description = "主图")
    private String mainImage;

    /**产品图片(多张,逗号分隔)*/
    @Excel(name = "产品图片", width = 15)
    @Schema(description = "产品图片(多张,逗号分隔)")
    private String images;

    /**产品视频URL*/
    @Excel(name = "产品视频URL", width = 15)
    @Schema(description = "产品视频URL")
    private String productVideo;

    /**产品描述*/
    @Excel(name = "产品描述", width = 15)
    @Schema(description = "产品描述")
    private String description;

    /**文化故事*/
    @Excel(name = "文化故事", width = 15)
    @Schema(description = "文化故事")
    private String culturalStory;

    /**工匠信息*/
    @Excel(name = "工匠信息", width = 15)
    @Schema(description = "工匠信息")
    private String craftsmanInfo;

    /**材质*/
    @Excel(name = "材质", width = 15)
    @Schema(description = "材质")
    private String material;

    /**规格*/
    @Excel(name = "规格", width = 15)
    @Schema(description = "规格")
    private String specifications;

    /**重量(克)*/
    @Excel(name = "重量(克)", width = 15)
    @Schema(description = "重量(克)")
    private Integer weight;

    /**尺寸*/
    @Excel(name = "尺寸", width = 15)
    @Schema(description = "尺寸")
    private String dimensions;

    /**标签(多个,逗号分隔)*/
    @Excel(name = "标签", width = 15)
    @Schema(description = "标签(多个,逗号分隔)")
    private String tags;

    /**是否推荐(0-否,1-是)*/
    @Excel(name = "是否推荐", width = 15)
    @Schema(description = "是否推荐(0-否,1-是)")
    private Integer isFeatured;

    /**是否热销(0-否,1-是)*/
    @Excel(name = "是否热销", width = 15)
    @Schema(description = "是否热销(0-否,1-是)")
    private Integer isHot;

    /**销量*/
    @Excel(name = "销量", width = 15)
    @Schema(description = "销量")
    private Integer salesCount;

    /**排序*/
    @Excel(name = "排序", width = 15)
    @Schema(description = "排序")
    private Integer sortOrder;

    /**状态(0-下架,1-上架)*/
    @Excel(name = "状态", width = 15)
    @Schema(description = "状态(0-下架,1-上架)")
    private Integer status;

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

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

    /**更新人*/
    @Schema(description = "更新人")
    private String updateBy;

    /**更新日期*/
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "更新日期")
    private Date updateTime;
}