package org.jeecg.modules.demo.pagecontentcapture.entity;

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 io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

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

/**
 * @Description: 页面内容抓取
 * @Author: jeecg-boot
 * @Date:   2023-04-17
 * @Version: V1.0
 */
@Data
@TableName("page_content_capture")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="page_content_capture对象", description="页面内容抓取")
public class PageContentCaptureVo implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**资源链接*/
	@Excel(name = "资源链接", width = 15)
    @ApiModelProperty(value = "资源链接")
    private String source;
	/**资源文章标题*/
	@Excel(name = "资源文章标题", width = 15)
    @ApiModelProperty(value = "资源文章标题")
    private String title;
	/**父地址类型*/
	@Excel(name = "父地址类型", width = 15)
    @ApiModelProperty(value = "父地址类型")
    private String typeSource;
	/**父地址状态*/
	@Excel(name = "父地址状态", width = 15)
    @ApiModelProperty(value = "父地址状态")
    private String stateSource;
	/**主站点链接*/
	@Excel(name = "主站点链接", width = 15)
    @ApiModelProperty(value = "主站点链接")
    private String mainUrl;
	/**错敏词列表*/
	@Excel(name = "错敏词列表", width = 15)
    @ApiModelProperty(value = "错敏词列表")
    private String sensitiveList;
	/**校对敏感词个数*/
	@Excel(name = "校对敏感词个数", width = 15)
    @ApiModelProperty(value = "校对敏感词个数")
    private Integer sensitiveCount;
	/**成功标记*/
	@Excel(name = "成功标记", width = 15)
    @ApiModelProperty(value = "成功标记")
    private Integer retCode;
	/**校对错误个数*/
	@Excel(name = "校对错误个数", width = 15)
    @ApiModelProperty(value = "校对错误个数")
    private Integer errorCount;
	/**校对重点关注词个数*/
	@Excel(name = "校对重点关注词个数", width = 15)
    @ApiModelProperty(value = "校对重点关注词个数")
    private Integer heavyCount;
	/**修改状态*/
	@Excel(name = "修改状态", width = 15, dicCode = "modify_state")
	@Dict(dicCode = "modify_state")
    @ApiModelProperty(value = "修改状态")
    private String modifyState;
	/**文章发布时间*/
	@Excel(name = "文章发布时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "文章发布时间")
    private Date articleReleaseTime;
	/**扫描次数*/
	@Excel(name = "扫描次数", width = 15)
    @ApiModelProperty(value = "扫描次数")
    private Integer numberScans;
	/**是否是失效文章*/
	@Excel(name = "是否是失效文章", width = 15, dicCode = "verify_status")
	@Dict(dicCode = "verify_status")
    @ApiModelProperty(value = "是否是失效文章")
    private String isInvalid;
	/**是否忽略*/
	@Excel(name = "是否忽略", width = 15, dicCode = "verify_status")
	@Dict(dicCode = "verify_status")
    @ApiModelProperty(value = "是否忽略")
    private String isIgnore;
	/**复核时间*/
	@Excel(name = "复核时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "复核时间")
    private Date checkTime;
	/**复核状态*/
	@Excel(name = "复核状态", width = 15, dicCode = "verify_status")
	@Dict(dicCode = "verify_status")
    @ApiModelProperty(value = "复核状态")
    private String checkState;
	/**复核校对错误个数*/
	@Excel(name = "复核校对错误个数", width = 15)
    @ApiModelProperty(value = "复核校对错误个数")
    private Integer checkErrorCount;

    private Integer tenantId;

    @TableField(exist = false)
    private List<String> sensitiveArrayList;


    @TableField(exist = false)
    private List<String> sensitiveHtmlArrayList;

    @TableField(exist = false)
    private String errorMessage;

    @TableField(exist = false)
    private String sensitiveErrorList;

    @TableField(exist = false)
    private Integer sumAll;

    public String toStringStr() {
        return "PageContentCapture{" +
                "id='" + id + '\'' +
                ", createBy='" + createBy + '\'' +
                ", createTime=" + createTime +
                ", updateBy='" + updateBy + '\'' +
                ", updateTime=" + updateTime +
                ", source='" + source + '\'' +
                ", title='" + title + '\'' +
                ", typeSource='" + typeSource + '\'' +
                ", stateSource='" + stateSource + '\'' +
                ", mainUrl='" + mainUrl + '\'' +
                ", sensitiveList='" + sensitiveList + '\'' +
                ", sensitiveCount=" + sensitiveCount +
                ", retCode=" + retCode +
                ", errorCount=" + errorCount +
                ", heavyCount=" + heavyCount +
                ", modifyState='" + modifyState + '\'' +
                ", articleReleaseTime=" + articleReleaseTime +
                ", numberScans=" + numberScans +
                ", isInvalid='" + isInvalid + '\'' +
                ", isIgnore='" + isIgnore + '\'' +
                ", checkTime=" + checkTime +
                ", checkState='" + checkState + '\'' +
                ", checkErrorCount=" + checkErrorCount +
                '}';
    }
}
