package com.weather.entity;

import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 系统公告
 * </p>
 *
 * @author : fengyuhao
 * @since 2021-03-28
 */
@Data
@Accessors(chain = true)
@TableName("agricultural_knowledge_popularization")
@ApiModel(value="AgriculturalKnowledgePopularizationEntity对象", description="系统公告")
public class AgriculturalKnowledgePopularization implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "添加时间")
    @TableField("in_time")
    private LocalDateTime inTime;

    @ApiModelProperty(value = "文章标题")
    @TableField("title")
    private String title;

    @ApiModelProperty(value = "文章简介")
    @TableField("summary")
    private String summary;

    @ApiModelProperty(value = "文章内容")
    @TableField("content")
    private byte[] content;

    @ApiModelProperty(value = "文章类型")
    @TableField("essay_type")
    private Integer essayType;

    @ApiModelProperty(value = "图片路径")
    @TableField("picture_url")
    private String pictureUrl;

    @TableField(exist = false)
    private String createTime;

    @TableField(exist = false)
    private String detail;


}
