package com.zhiqiyun.open.core.models.sentiment;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
@TableName(value = "sentiment_spider_result", autoResultMap = true)
public class SentimentSpiderResult {
    private String id;
    private Long eventId;
    private Long siteRuleId;
    private String url;
    private String title;
    private String keywords;
    private String description;

    @TableField(typeHandler = FastjsonTypeHandler.class)
    private List<String> fragments;

    private String bodyText;
    private String html;
    @TableField(updateStrategy = FieldStrategy.NEVER)
    private Date spiderTime;
    private Date updateTime;
}
