知识库历史文件
This commit is contained in:
@@ -108,4 +108,47 @@ public interface FileService {
|
||||
*/
|
||||
ResultDomain<TbSysFileDTO> uploadFileBytes(byte[] fileBytes, String fileName, String contentType, String module, String businessId);
|
||||
|
||||
/**
|
||||
* @description 通过字节数组上传文件(支持直接指定上传者,用于未登录用户场景如AIChat)
|
||||
* @param fileBytes 文件字节数组
|
||||
* @param fileName 文件名
|
||||
* @param contentType 文件类型
|
||||
* @param module 所属模块
|
||||
* @param businessId 业务ID
|
||||
* @param uploaderUserId 上传者用户ID(可为null)
|
||||
* @return ResultDomain<TbSysFileDTO> 上传结果
|
||||
* @author yslg
|
||||
* @since 2025-12-20
|
||||
*/
|
||||
ResultDomain<TbSysFileDTO> uploadFileBytesWithUser(byte[] fileBytes, String fileName, String contentType, String module, String businessId, String uploaderUserId);
|
||||
|
||||
/**
|
||||
* @description 通过字节数组上传新版本文件(用于跨模块 Dubbo 调用的文件版本更新)
|
||||
* @param fileBytes 文件字节数组
|
||||
* @param fileName 文件名
|
||||
* @param contentType 文件类型
|
||||
* @param module 所属模块
|
||||
* @param businessId 业务ID
|
||||
* @param fileRootId 文件根ID(多版本一致)
|
||||
* @return ResultDomain<TbSysFileDTO> 上传结果,包含新版本文件信息
|
||||
* @author yslg
|
||||
* @since 2025-12-20
|
||||
*/
|
||||
ResultDomain<TbSysFileDTO> uploadFileBytesVersion(byte[] fileBytes, String fileName, String contentType, String module, String businessId, String fileRootId);
|
||||
|
||||
/**
|
||||
* @description 通过字节数组上传新版本文件(支持直接指定上传者)
|
||||
* @param fileBytes 文件字节数组
|
||||
* @param fileName 文件名
|
||||
* @param contentType 文件类型
|
||||
* @param module 所属模块
|
||||
* @param businessId 业务ID
|
||||
* @param fileRootId 文件根ID(多版本一致)
|
||||
* @param uploaderUserId 上传者用户ID(可为null)
|
||||
* @return ResultDomain<TbSysFileDTO> 上传结果,包含新版本文件信息
|
||||
* @author yslg
|
||||
* @since 2025-12-20
|
||||
*/
|
||||
ResultDomain<TbSysFileDTO> uploadFileBytesVersionWithUser(byte[] fileBytes, String fileName, String contentType, String module, String businessId, String fileRootId, String uploaderUserId);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user