package com.pavis.admin.aigc.model.query;

import lombok.Data;

import io.swagger.v3.oas.annotations.media.Schema;

import top.continew.starter.data.core.annotation.Query;
import top.continew.starter.data.core.enums.QueryType;
import java.io.Serial;
import java.io.Serializable;
import java.time.*;

/**
 * 文档切片查询条件
 *
 * @author semi
 * @since 2025/05/26 17:28
 */
@Data
@Schema(description = "文档切片查询条件")
public class DocChunkQuery implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 向量库的ID
     */
    @Schema(description = "向量库的ID")
    @Query(type = QueryType.EQ)
    private String embedStoreId;

    /**
     * 文档ID
     */
    @Schema(description = "文档ID")
    @Query(type = QueryType.EQ)
    private Long docId;

    /**
     * 文档名称
     */
    private String name;

    /**
     * 知识库ID
     */
    @Schema(description = "知识库ID")
    @Query(type = QueryType.EQ)
    private Long knowledgeId;

    /**
     * 切片索引
     */
    @Schema(description = "切片索引")
    @Query(type = QueryType.EQ)
    private Integer chunkIndex;

    /**
     * 切片内容
     */
    @Schema(description = "切片内容")
    @Query(type = QueryType.LIKE)
    private String content;

    /**
     * 创建人
     */
    @Schema(description = "创建人")
    @Query(type = QueryType.EQ)
    private Long createUser;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    @Query(type = QueryType.EQ)
    private LocalDateTime createTime;
}