package com.search.supersearch.model.pojo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

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

/**
 * @author 喜欢番茄火锅
 * @date 2023/9/13 15:15
 */
@NoArgsConstructor
@Data
@AllArgsConstructor
@ToString
public class DocsIndex implements Serializable {
    private static final long serialVersionUID = 1L;
    //    ============== ============== DocsIndex 数据 ============== ==============
    @ApiModelProperty(value = "文件id")
    private String es_fileId;
    @ApiModelProperty(value = "索引创建日期")
    private Date es_index_creat_date;
    @ApiModelProperty(value = "文件路径")
    private String es_file_path;
    @ApiModelProperty(value = "组织编码")
    private String es_ord_id;
    @ApiModelProperty(value = "索引名称")
    private String es_index_name;
    @ApiModelProperty(value = "数据来源")
    private String es_data_source;
    @ApiModelProperty(value = "数据标题")
    private String es_data_title;
    @ApiModelProperty(value = "数据内容")
    private String es_data_content;
    @ApiModelProperty(value = "数据内容概要")
    private String es_data_simple_content;
    @ApiModelProperty(value = "数据时间")
    private String es_data_time;
    @ApiModelProperty(value = "数据时间 date格式")
    private Date es_order_time;
    @ApiModelProperty(value = "数据标识 0 非结构化 1 结构化")
    private String es_data_type;
    //    ============== ============== DwdField 数据 ============== ==============
    @ApiModelProperty(value = "es数据")
    private Map data;

    //    ============== ============== MetaInfo 数据 ============== ==============


    @Data
    public static class MetaInfo {
        @ApiModelProperty("author")
        private String metaAuthor;
        @ApiModelProperty("modifier")
        private String metaModifier;
        @ApiModelProperty("created")
        private String metaCreated;
        @ApiModelProperty("content_type")
        private String metaContentType;
        @ApiModelProperty("filesize")
        private String metaFilesize;
        @ApiModelProperty("filename")
        private String metaFilename;
        @ApiModelProperty("url")
        private String metaFileUrl;
    }
}
