package com.xinelu.manage.domain.info;

import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.xinelu.common.annotation.Excel;
import com.xinelu.common.core.domain.BaseEntity;

/**
 * 资讯信息对象 info
 *
 * @author xinelu
 * @date 2024-04-11
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "资讯信息对象", description = "info")
public class Info extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    private Long id;

    /**
     * 资讯所属分类id
     */
    @ApiModelProperty(value = "资讯所属分类id")
    @Excel(name = "资讯所属分类id")
    private Long infoCategoryId;


    /**
     * 资讯所属分类id
     */
    @ApiModelProperty(value = "资讯列别名称")
    @Excel(name = "资讯类别名称")
    private String infoCategoryName;

    /**
     * 资讯标题
     */
    @ApiModelProperty(value = "资讯标题")
    @Excel(name = "资讯标题")
    private String infoTitle;

    /**
     * 资讯编码
     */
    @ApiModelProperty(value = "资讯编码")
    @Excel(name = "资讯编码")
    private String infoCode;

    /**
     * 资讯图文内容，富文本
     */
    @ApiModelProperty(value = "资讯图文内容，富文本")
    @Excel(name = "资讯图文内容，富文本")
    private String infoContent;

    /**
     * 咨询点击次数
     */
    @ApiModelProperty(value = "资讯点击次数")
    @Excel(name = "咨询点击次数")
    private Long infoClickCount;

    /**
     * 资讯跳转路径
     */
    @ApiModelProperty(value = "资讯跳转路径")
    @Excel(name = "资讯跳转路径")
    private String infoJumpLink;


    /**
     * 资讯大图地址
     */
    @ApiModelProperty(value = "资讯大图地址")
    @Excel(name = "资讯大图地址")
    private String infoLargePictureUrl;

    /**
     * 资讯排序
     */
    @ApiModelProperty(value = "资讯排序")
    @Excel(name = "资讯排序")
    private Long infoSort;

    /**
     * 资讯创建人
     */
    @ApiModelProperty(value = "资讯创建人")
    @Excel(name = "资讯创建人")
    private String infoCreator;

    /**
     * 资讯创建时间
     */
    @ApiModelProperty(value = "资讯创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "资讯创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime infoCreateTime;

    /**
     * 资讯修改人
     */
    @ApiModelProperty(value = "资讯修改人")
    @Excel(name = "资讯修改人")
    private String infoReviser;

    /**
     * 资讯修改时间
     */
    @ApiModelProperty(value = "资讯修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "资讯修改时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime infoModifyTime;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("infoCategoryId", getInfoCategoryId())
                .append("infoCategoryName", getInfoCategoryName())
                .append("infoTitle", getInfoTitle())
                .append("infoCode", getInfoCode())
                .append("infoContent", getInfoContent())
                .append("infoClickCount", getInfoClickCount())
                .append("infoJumpLink", getInfoJumpLink())
                .append("infoLargePictureUrl", getInfoLargePictureUrl())
                .append("infoSort", getInfoSort())
                .append("infoCreator", getInfoCreator())
                .append("infoCreateTime", getInfoCreateTime())
                .append("infoReviser", getInfoReviser())
                .append("infoModifyTime", getInfoModifyTime())
                .toString();
    }
}
