package org.jeecg.modules.oroqen.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
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.util.Date;

/**
 * @Description: 文化内容
 * @Author: jeecg-boot
 * @Date: 2025-01-08
 * @Version: V1.0
 */
@Data
@TableName("oroqen_culture_content")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(description = "文化内容")
public class OroqenCultureContent 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 title;

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

    /**内容*/
    @Excel(name = "内容", width = 15)
    @Schema(description = "内容")
    private String content;

    /**摘要*/
    @Excel(name = "摘要", width = 15)
    @Schema(description = "摘要")
    private String summary;

    /**封面图片*/
    @Excel(name = "封面图片", width = 15)
    @Schema(description = "封面图片")
    @TableField("cover_image")
    private String coverImage;

    /**图片集*/
    @Excel(name = "图片集", width = 15)
    @Schema(description = "图片集")
    private String images;

    /**视频链接*/
    @Excel(name = "视频链接", width = 15)
    @Schema(description = "视频链接")
    @TableField("video_url")
    private String videoUrl;

    /**音频链接*/
    @Excel(name = "音频链接", width = 15)
    @Schema(description = "音频链接")
    @TableField("audio_url")
    private String audioUrl;

    /**标签*/
    @Excel(name = "标签", width = 15)
    @Schema(description = "标签")
    private String tags;

    /**作者*/
    @Excel(name = "作者", width = 15)
    @Schema(description = "作者")
    private String author;

    /**来源*/
    @Excel(name = "来源", width = 15)
    @Schema(description = "来源")
    private String source;

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

    /**浏览次数*/
    @Excel(name = "浏览次数", width = 15)
    @Schema(description = "浏览次数")
    @TableField("view_count")
    private Integer viewCount;

    /**点赞次数*/
    @Excel(name = "点赞次数", width = 15)
    @Schema(description = "点赞次数")
    @TableField("like_count")
    private Integer likeCount;

    /**收藏次数*/
    @Excel(name = "收藏次数", width = 15)
    @Schema(description = "收藏次数")
    @TableField("favorite_count")
    private Integer favoriteCount;

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

    /**状态(0-禁用,1-启用)*/
    @Excel(name = "状态(0-禁用,1-启用)", width = 15)
    @Schema(description = "状态(0-禁用,1-启用)")
    private Integer status;

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

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

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

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