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 DocQuery implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

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

    /**
     * 文档名称
     */
    @Schema(description = "文档名称")
    @Query(type = QueryType.LIKE)
    private String name;

    /**
     * 文件类型
     */
    @Schema(description = "文件类型")
    @Query(type = QueryType.EQ)
    private String fileType;

    /**
     * 文件哈希
     */
    @Schema(description = "文件哈希")
    @Query(type = QueryType.EQ)
    private String fileHash;

    /**
     * 存储路径
     */
    @Schema(description = "存储路径")
    @Query(type = QueryType.EQ)
    private String storagePath;

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

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