package com.ruoyi.liandao.domain;

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 com.ruoyi.common.core.domain.BaseEntity;
import java.io.Serializable;
import java.util.Date;

import com.ruoyi.common.utils.DateUtils;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 文章内容
 * @TableName ld_article_content
 */
@TableName(value ="ld_article_content")
@Data
public class ArticleContent extends BaseEntity implements Serializable {
    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 文章类型id
     */
    @TableField(value = "article_type_id")
    private Long articleTypeId;

    /**
     * 文章类型
     */
    @TableField(value = "article_type")
    private String articleType;

    /**
     * 标题
     */
    @TableField(value = "tittle")
    private String tittle;

    /**
     * 作者
     */
    @TableField(value = "author")
    private String author;

    /**
     * 语言
     */
    @TableField(value = "language")
    private String language;

    /**
     * 提交时间
     */
    @JsonFormat(pattern = DateUtils.YYYY_MM_DD)
    @TableField(value = "submit_time")
    private Date submitTime;

    /**
     * 显示图片
     */
    @TableField(value = "img")
    private String img;

    /**
     * 摘要
     */
    @TableField(value = "excerpt")
    private String excerpt;

    /**
     * 文章内容
     */
    @TableField(value = "content")
    private String content;

    /**
     * 活动时间范围
     */
    @TableField(value = "activity_time_range")
    private String activityTimeRange;

    /**
     * 活动时间
     */
    @JsonFormat(pattern = DateUtils.YYYY_MM_DD)
    @TableField(value = "activity_time")
    private Date activityTime;

    /**
     * 活动地点
     */
    @TableField(value = "activity_location")
    private String activityLocation;

    /**
     * 文本类型 文本、富文本
     */
    @TableField(value = "text_type")
    private String textType;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
