知识库文件删除修复

This commit is contained in:
2025-12-30 19:16:51 +08:00
parent ca330fc695
commit 4e04e4599e
3 changed files with 7 additions and 7 deletions

View File

@@ -235,10 +235,10 @@ public class KnowledgeController {
* @since 2025-12-18
*/
@PreAuthorize("hasAuthority('ai:knowledge:file:delete')")
@DeleteMapping("/file/{fileId}")
public ResultDomain<Boolean> deleteFile(@PathVariable("fileId") @NotBlank String fileId) {
logger.info("删除知识库文件: fileId={}", fileId);
return knowledgeService.deleteKnowledgeFileById(fileId);
@DeleteMapping("/file/{fileRootId}")
public ResultDomain<Boolean> deleteFile(@PathVariable("fileRootId") @NotBlank String fileRootId) {
logger.info("删除知识库文件: fileId={}", fileRootId);
return knowledgeService.deleteKnowledgeFileById(fileRootId);
}
/**