package org.xyzh.api.ai.vo;

import org.xyzh.api.ai.dto.TbKnowledgeFile;
import org.xyzh.common.vo.BaseVO;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @description    知识库文件视图对象（关联文件信息）
 * @filename    KnowledgeFileVO.java
 * @author    yslg
 * @copyright xyzh
 * @since 2025-12-20
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "知识库文件视图对象")
public class KnowledgeFileVO extends BaseVO {
    private static final long serialVersionUID = 1L;

    // TbKnowledgeFile 的字段
    @Schema(description = "知识库ID")
    private String knowledgeId;

    @Schema(description = "文件ID")
    private String fileId;

    @Schema(description = "文件根ID")
    private String fileRootId;

    @Schema(description = "Dify文件ID")
    private String difyFileId;

    @Schema(description = "文件版本")
    private Integer version;

    // TbSysFile 的字段
    @Schema(description = "文件名")
    private String fileName;

    @Schema(description = "文件路径")
    private String filePath;

    @Schema(description = "文件大小（字节）")
    private Long fileSize;

    @Schema(description = "文件MIME类型")
    private String fileMimeType;

    @Schema(description = "文件访问URL")
    private String fileUrl;

    @Schema(description = "文件扩展名")
    private String fileExtension;

    @Schema(description = "文件MD5值")
    private String fileMd5Hash;

    @Schema(description = "上传人员名称")
    private String uploaderName;
}
