package cn.pluss.platform.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

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

/**
 * <p>
 * 缴费通小课堂信息表
 * </p>
 *
 * @author bzg
 * @since 2022-07-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_pluss_jft_small_class")
public class JftSmallClass implements Serializable {

    private static final long serialVersionUID = 1L;

    public static Integer DEUAULT_STATUS = 1;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;


    /**
     * 标题
     */
    @TableField("title")
    private String title;


    /**
     * 描述
     */
    @TableField("`describe`")
    private String describe;


    /**
     * 内容
     */
    @TableField("content")
    private String content;


    /**
     * 图片
     */
    @TableField("photo")
    private String photo;


    /**
     * url
     */
    @TableField("url")
    private String url;


    /**
     * 状态 1：显示 -1：不显示
     */
    @TableField("status")
    private Integer status;


    /**
     * 排序
     */
    @TableField("sort")
    private Integer sort;


    /**
     * 创建时间
     */
    @TableField(value = "createTime", fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;


    @TableField(exist = false)
    private String photoBaseStr;

}