新增 CLAUDE.md 文件以提供项目指导,添加 .claudeignore 文件以排除不必要的文件,更新 pom.xml 版本至 3.9.2,修复多个路径遍历和 SQL 注入漏洞,优化字典翻译切面逻辑,增强文件上传和下载的安全性,新增音频文件类型支持,改进动态数据源的安全校验。
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<parent>
|
||||
<artifactId>jeecg-system-api</artifactId>
|
||||
<groupId>org.jeecgframework.boot3</groupId>
|
||||
<version>3.9.1</version>
|
||||
<version>3.9.2</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
|
||||
@@ -9,15 +9,52 @@ package org.jeecg.common.airag.api;
|
||||
public interface IAiragBaseApi {
|
||||
|
||||
/**
|
||||
* 知识库写入文本文档
|
||||
* 知识库写入文本文档(支持自定义分段策略)
|
||||
*
|
||||
* @param knowledgeId 知识库ID
|
||||
* @param title 文档标题
|
||||
* @param content 文档内容
|
||||
* @param knowledgeId 知识库ID
|
||||
* @param title 文档标题
|
||||
* @param content 文档内容
|
||||
* @param segmentConfig 【可选】分段策略配置JSON,包含 segmentStrategy/separator/customSeparator/maxSegment/overlap/textRules
|
||||
* @return 新增的文档ID
|
||||
* @author sjlei
|
||||
* @date 2025-12-30
|
||||
*/
|
||||
String knowledgeWriteTextDocument(String knowledgeId, String title, String content);
|
||||
String knowledgeWriteTextDocument(String knowledgeId, String title, String content, String segmentConfig);
|
||||
|
||||
/**
|
||||
* 读取会话变量
|
||||
*
|
||||
* @param appId 应用ID
|
||||
* @param username 用户名
|
||||
* @param name 变量名
|
||||
* @return 变量值,不存在时返回null
|
||||
*/
|
||||
String getChatVariable(String appId, String username, String name);
|
||||
|
||||
/**
|
||||
* 设置会话变量
|
||||
*
|
||||
* @param appId 应用ID
|
||||
* @param username 用户名
|
||||
* @param name 变量名
|
||||
* @param value 变量值
|
||||
*/
|
||||
void setChatVariable(String appId, String username, String name, String value);
|
||||
|
||||
/**
|
||||
* 根据应用ID查询记忆库ID
|
||||
* 当应用开启了记忆功能(izOpenMemory=1)时返回memoryId,否则返回null
|
||||
*
|
||||
* @param appId 应用ID
|
||||
* @return 记忆库ID,未开启记忆功能时返回null
|
||||
*/
|
||||
String getMemoryIdByAppId(String appId);
|
||||
|
||||
/**
|
||||
* 根据提示词ID查询提示词内容
|
||||
* 供 LLM 节点关联模式在运行时动态加载提示词内容
|
||||
*
|
||||
* @param promptId 提示词表主键ID
|
||||
* @return 提示词内容,提示词不存在时返回null
|
||||
*/
|
||||
String getPromptContent(String promptId);
|
||||
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 表单设计器【Online】翻译API接口
|
||||
* 【Online】online表单对外接口
|
||||
*
|
||||
* @author sunjianlei
|
||||
*/
|
||||
|
||||
@@ -13,6 +13,7 @@ import org.jeecg.common.system.vo.*;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.servlet.mvc.method.annotation.SseEmitter;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
@@ -121,6 +122,14 @@ public interface ISysBaseAPI extends CommonAPI {
|
||||
*/
|
||||
Set<String> getDepartParentIdsByDepIds(Set<String> depIds);
|
||||
|
||||
/**
|
||||
* 8.4 通过 userIds 查询部门ID列表
|
||||
*
|
||||
* @param userIds
|
||||
* @return key = userId; value = 用户拥有的部门ID列表
|
||||
*/
|
||||
Map<String, List<String>> getDepartIdsByUserIds(Collection<String> userIds);
|
||||
|
||||
/**
|
||||
* 9通过用户账号查询部门 name
|
||||
* @param username
|
||||
@@ -644,4 +653,17 @@ public interface ISysBaseAPI extends CommonAPI {
|
||||
* @param pushMessageDTO 推送消息
|
||||
*/
|
||||
void uniPushMsgToUser(PushMessageDTO pushMessageDTO);
|
||||
|
||||
/**
|
||||
* 根据用户名查询用户主部门信息。
|
||||
* <p>
|
||||
* 逻辑:取用户的主岗位(mainDepPostId),再查询该岗位节点在 sys_depart 中的父节点,
|
||||
* 父节点即为用户的主部门,返回其信息。
|
||||
* <p>
|
||||
*
|
||||
* @param username 用户账号
|
||||
* @return 主部门信息,若用户未配置主岗位则返回 {@code null}
|
||||
*/
|
||||
SysDepartModel queryMainDepartByUsername(String username);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user