v3.0.0 init

This commit is contained in:
ageerle
2026-02-06 03:00:23 +08:00
parent eb2e8f3ff8
commit 7b8cfe02a1
1524 changed files with 53132 additions and 58866 deletions

View File

@@ -0,0 +1,15 @@
package org.ruoyi.mapper.chat;
import org.ruoyi.domain.entity.chat.ChatConfig;
import org.ruoyi.domain.vo.chat.ChatConfigVo;
import org.ruoyi.common.mybatis.core.mapper.BaseMapperPlus;
/**
* 配置信息Mapper接口
*
* @author ageerle
* @date 2025-12-14
*/
public interface ChatConfigMapper extends BaseMapperPlus<ChatConfig, ChatConfigVo> {
}

View File

@@ -0,0 +1,15 @@
package org.ruoyi.mapper.chat;
import org.ruoyi.domain.entity.chat.ChatMessage;
import org.ruoyi.domain.vo.chat.ChatMessageVo;
import org.ruoyi.common.mybatis.core.mapper.BaseMapperPlus;
/**
* 聊天消息Mapper接口
*
* @author ageerle
* @date 2025-12-14
*/
public interface ChatMessageMapper extends BaseMapperPlus<ChatMessage, ChatMessageVo> {
}

View File

@@ -0,0 +1,15 @@
package org.ruoyi.mapper.chat;
import org.ruoyi.domain.entity.chat.ChatModel;
import org.ruoyi.domain.vo.chat.ChatModelVo;
import org.ruoyi.common.mybatis.core.mapper.BaseMapperPlus;
/**
* 模型管理Mapper接口
*
* @author ageerle
* @date 2025-12-14
*/
public interface ChatModelMapper extends BaseMapperPlus<ChatModel, ChatModelVo> {
}

View File

@@ -0,0 +1,15 @@
package org.ruoyi.mapper.chat;
import org.ruoyi.domain.entity.chat.ChatProvider;
import org.ruoyi.domain.vo.chat.ChatProviderVo;
import org.ruoyi.common.mybatis.core.mapper.BaseMapperPlus;
/**
* 厂商管理Mapper接口
*
* @author ageerle
* @date 2025-12-14
*/
public interface ChatProviderMapper extends BaseMapperPlus<ChatProvider, ChatProviderVo> {
}

View File

@@ -0,0 +1,15 @@
package org.ruoyi.mapper.chat;
import org.ruoyi.common.mybatis.core.mapper.BaseMapperPlus;
import org.ruoyi.domain.entity.chat.ChatSession;
import org.ruoyi.domain.vo.chat.ChatSessionVo;
/**
* 会话管理Mapper接口
*
* @author ageerle
* @date 2025-12-30
*/
public interface ChatSessionMapper extends BaseMapperPlus<ChatSession, ChatSessionVo> {
}

View File

@@ -0,0 +1,65 @@
package org.ruoyi.mapper.graph;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.ruoyi.domain.bo.graph.GraphBuildTask;
import java.util.List;
/**
* 图谱构建任务Mapper接口
*
* @author ruoyi
* @date 2025-09-30
*/
public interface GraphBuildTaskMapper extends BaseMapper<GraphBuildTask> {
/**
* 根据任务UUID查询
*
* @param taskUuid 任务UUID
* @return 构建任务
*/
GraphBuildTask selectByTaskUuid(String taskUuid);
/**
* 根据图谱UUID查询任务列表
*
* @param graphUuid 图谱UUID
* @return 任务列表
*/
List<GraphBuildTask> selectByGraphUuid(String graphUuid);
/**
* 根据知识库ID查询任务列表
*
* @param knowledgeId 知识库ID
* @return 任务列表
*/
List<GraphBuildTask> selectByKnowledgeId(String knowledgeId);
/**
* 查询待执行和执行中的任务
*
* @return 任务列表
*/
List<GraphBuildTask> selectPendingAndRunningTasks();
/**
* 更新任务进度
*
* @param taskUuid 任务UUID
* @param progress 进度
* @param processedDocs 已处理文档数
* @return 影响行数
*/
int updateProgress(String taskUuid, Integer progress, Integer processedDocs);
/**
* 更新任务状态
*
* @param taskUuid 任务UUID
* @param status 状态
* @return 影响行数
*/
int updateStatus(String taskUuid, Integer status);
}

View File

@@ -0,0 +1,38 @@
package org.ruoyi.mapper.graph;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.ruoyi.domain.bo.graph.GraphEntityType;
import java.util.List;
/**
* 图谱实体类型Mapper接口
*
* @author ruoyi
* @date 2025-09-30
*/
public interface GraphEntityTypeMapper extends BaseMapper<GraphEntityType> {
/**
* 根据类型编码查询
*
* @param typeCode 类型编码
* @return 实体类型
*/
GraphEntityType selectByTypeCode(String typeCode);
/**
* 查询所有启用的实体类型
*
* @return 实体类型列表
*/
List<GraphEntityType> selectEnabledTypes();
/**
* 批量查询实体类型
*
* @param typeCodes 类型编码列表
* @return 实体类型列表
*/
List<GraphEntityType> selectByTypeCodes(List<String> typeCodes);
}

View File

@@ -0,0 +1,48 @@
package org.ruoyi.mapper.graph;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.ruoyi.domain.bo.graph.GraphInstance;
/**
* 知识图谱实例Mapper接口
*
* @author ruoyi
* @date 2025-09-30
*/
public interface GraphInstanceMapper extends BaseMapper<GraphInstance> {
/**
* 根据图谱UUID查询
*
* @param graphUuid 图谱UUID
* @return 图谱实例
*/
GraphInstance selectByGraphUuid(String graphUuid);
/**
* 根据知识库ID查询图谱列表
*
* @param knowledgeId 知识库ID
* @return 图谱实例列表
*/
java.util.List<GraphInstance> selectByKnowledgeId(String knowledgeId);
/**
* 更新节点和关系数量
*
* @param graphUuid 图谱UUID
* @param nodeCount 节点数量
* @param relationshipCount 关系数量
* @return 影响行数
*/
int updateCounts(String graphUuid, Integer nodeCount, Integer relationshipCount);
/**
* 更新图谱状态
*
* @param graphUuid 图谱UUID
* @param status 状态
* @return 影响行数
*/
int updateStatus(String graphUuid, Integer status);
}

View File

@@ -0,0 +1,38 @@
package org.ruoyi.mapper.graph;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.ruoyi.domain.bo.graph.GraphRelationType;
import java.util.List;
/**
* 图谱关系类型Mapper接口
*
* @author ruoyi
* @date 2025-09-30
*/
public interface GraphRelationTypeMapper extends BaseMapper<GraphRelationType> {
/**
* 根据关系编码查询
*
* @param relationCode 关系编码
* @return 关系类型
*/
GraphRelationType selectByRelationCode(String relationCode);
/**
* 查询所有启用的关系类型
*
* @return 关系类型列表
*/
List<GraphRelationType> selectEnabledTypes();
/**
* 批量查询关系类型
*
* @param relationCodes 关系编码列表
* @return 关系类型列表
*/
List<GraphRelationType> selectByRelationCodes(List<String> relationCodes);
}

View File

@@ -0,0 +1,15 @@
package org.ruoyi.mapper.knowledge;
import org.ruoyi.domain.entity.knowledge.KnowledgeAttach;
import org.ruoyi.domain.vo.knowledge.KnowledgeAttachVo;
import org.ruoyi.common.mybatis.core.mapper.BaseMapperPlus;
/**
* 知识库附件Mapper接口
*
* @author ageerle
* @date 2025-12-17
*/
public interface KnowledgeAttachMapper extends BaseMapperPlus<KnowledgeAttach, KnowledgeAttachVo> {
}

View File

@@ -0,0 +1,15 @@
package org.ruoyi.mapper.knowledge;
import org.ruoyi.domain.entity.knowledge.KnowledgeFragment;
import org.ruoyi.domain.vo.knowledge.KnowledgeFragmentVo;
import org.ruoyi.common.mybatis.core.mapper.BaseMapperPlus;
/**
* 知识片段Mapper接口
*
* @author ageerle
* @date 2025-12-17
*/
public interface KnowledgeFragmentMapper extends BaseMapperPlus<KnowledgeFragment, KnowledgeFragmentVo> {
}

View File

@@ -0,0 +1,15 @@
package org.ruoyi.mapper.knowledge;
import org.ruoyi.domain.entity.knowledge.KnowledgeGraphInstance;
import org.ruoyi.domain.vo.knowledge.KnowledgeGraphInstanceVo;
import org.ruoyi.common.mybatis.core.mapper.BaseMapperPlus;
/**
* 知识图谱实例Mapper接口
*
* @author ageerle
* @date 2025-12-17
*/
public interface KnowledgeGraphInstanceMapper extends BaseMapperPlus<KnowledgeGraphInstance, KnowledgeGraphInstanceVo> {
}

View File

@@ -0,0 +1,15 @@
package org.ruoyi.mapper.knowledge;
import org.ruoyi.domain.entity.knowledge.KnowledgeGraphSegment;
import org.ruoyi.domain.vo.knowledge.KnowledgeGraphSegmentVo;
import org.ruoyi.common.mybatis.core.mapper.BaseMapperPlus;
/**
* 知识图谱片段Mapper接口
*
* @author ageerle
* @date 2025-12-17
*/
public interface KnowledgeGraphSegmentMapper extends BaseMapperPlus<KnowledgeGraphSegment, KnowledgeGraphSegmentVo> {
}

View File

@@ -0,0 +1,15 @@
package org.ruoyi.mapper.knowledge;
import org.ruoyi.domain.entity.knowledge.KnowledgeInfo;
import org.ruoyi.domain.vo.knowledge.KnowledgeInfoVo;
import org.ruoyi.common.mybatis.core.mapper.BaseMapperPlus;
/**
* 知识库Mapper接口
*
* @author ageerle
* @date 2025-12-17
*/
public interface KnowledgeInfoMapper extends BaseMapperPlus<KnowledgeInfo, KnowledgeInfoVo> {
}