package com.bonus.canteen.core.health.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.bonus.common.core.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import com.bonus.common.core.web.domain.BaseEntity;

/**
 * 营养科普对象 health_popular_article
 * 
 * @author xsheng
 * @date 2025-05-25
 */


@Data
@ToString
public class HealthPopularArticle extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 主键自增id */
    private Long articleId;

    /** 文章标题 */
    @Excel(name = "文章标题")
    @ApiModelProperty(value = "文章标题")
    private String articleTitle;

    /** 封面图片 */
    @Excel(name = "封面图片")
    @ApiModelProperty(value = "封面图片")
    private String coverPhoto;

    /** 编辑类型(1-文章编辑，2-外部网页链接) */
    @Excel(name = "编辑类型(1-文章编辑，2-外部网页链接)")
    @ApiModelProperty(value = "编辑类型(1-文章编辑，2-外部网页链接)")
    private Long articleType;

    /** 内容详情 */
    @Excel(name = "内容详情")
    @ApiModelProperty(value = "内容详情")
    private String articleContent;

    /** 外部链接 */
    @Excel(name = "外部链接")
    @ApiModelProperty(value = "外部链接")
    private String articleUrl;

    /** 是否可见(1-是,2否) */
    @Excel(name = "是否可见(1-是,2否)")
    @ApiModelProperty(value = "是否可见(1-是,2否)")
    private Long ifVisible;

    /** 点击量 */
    @Excel(name = "点击量")
    @ApiModelProperty(value = "点击量")
    private Long hits;

    /** 是否发布(1-是,2-否) */
    @Excel(name = "是否发布(1-是,2-否)")
    @ApiModelProperty(value = "是否发布(1-是,2-否)")
    private Long ifPushed;

    /** 发布时间 */
    @ApiModelProperty(value = "发布时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date pushTime;

    /** 文章摘要 */
    @Excel(name = "文章摘要")
    @ApiModelProperty(value = "文章摘要")
    private String summary;


}
