package org.xyzh.common.dto.ai;

import org.xyzh.common.dto.BaseDTO;

/**
 * @description 知识库表
 * @filename TbAiKnowledge.java
 * @author yslg
 * @copyright xyzh
 * @since 2025-10-15
 */
public class TbAiKnowledge extends BaseDTO {
    
    private static final long serialVersionUID = 1L;
    
    /**
     * @description 知识标题
     */
    private String title;
    
    /**
     * @description 知识内容
     */
    private String content;
    
    /**
     * @description 来源类型（1手动添加 2文件导入 3资源同步）
     */
    private Integer sourceType;
    
    /**
     * @description 来源ID
     */
    private String sourceID;
    
    /**
     * @description 文件名
     */
    private String fileName;
    
    /**
     * @description 文件路径
     */
    private String filePath;
    
    /**
     * @description 分类
     */
    private String category;
    
    /**
     * @description 标签（JSON数组）
     */
    private String tags;
    
    /**
     * @description 向量ID（用于向量检索）
     */
    private String vectorID;
    
    /**
     * @description 状态（0禁用 1启用）
     */
    private Integer status;
    
    /**
     * @description 创建者
     */
    private String creator;
    
    /**
     * @description 更新者
     */
    private String updater;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getSourceType() {
        return sourceType;
    }

    public void setSourceType(Integer sourceType) {
        this.sourceType = sourceType;
    }

    public String getSourceID() {
        return sourceID;
    }

    public void setSourceID(String sourceID) {
        this.sourceID = sourceID;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getTags() {
        return tags;
    }

    public void setTags(String tags) {
        this.tags = tags;
    }

    public String getVectorID() {
        return vectorID;
    }

    public void setVectorID(String vectorID) {
        this.vectorID = vectorID;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public String getUpdater() {
        return updater;
    }

    public void setUpdater(String updater) {
        this.updater = updater;
    }

    @Override
    public String toString() {
        return "TbAiKnowledge{" +
                "id=" + getID() +
                ", title='" + title + '\'' +
                ", sourceType=" + sourceType +
                ", category='" + category + '\'' +
                ", status=" + status +
                ", createTime=" + getCreateTime() +
                '}';
    }
}
