From 95ae0c83d2aa58d86b4039e3f7f16ee93afb8f00 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期五, 23 十月 2026 17:01:00 +0800
Subject: [PATCH] feat(ai): 完善模型管理和智能体导入功能
---
yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/controller/admin/storage/SystemStorageAttachmentController.java | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/controller/admin/storage/SystemStorageAttachmentController.java b/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/controller/admin/storage/SystemStorageAttachmentController.java
index 9d1c199..a6f1c19 100644
--- a/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/controller/admin/storage/SystemStorageAttachmentController.java
+++ b/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/controller/admin/storage/SystemStorageAttachmentController.java
@@ -36,6 +36,10 @@
@PreAuthorize("@ss.hasPermission('system:storage-attachment:query')")
public CommonResult<List<SystemStorageBlobRespVO>> listAttachments(
@Valid SystemStorageAttachmentListReqVO reqVO) {
+ if ("agent_import_session".equals(reqVO.getRecordType())) {
+ throw new org.springframework.web.server.ResponseStatusException(
+ org.springframework.http.HttpStatus.FORBIDDEN, "鏅鸿兘浣撹ˉ褰曢檮浠惰浣跨敤琛ュ綍浼氳瘽鎺ュ彛鏌ヨ");
+ }
return success(storageAttachmentService.listAttachments(reqVO));
}
@@ -44,6 +48,10 @@
@PreAuthorize("@ss.hasPermission('system:storage-attachment:create')")
public CommonResult<Boolean> bindAttachments(
@Valid @RequestBody SystemStorageAttachmentSaveReqVO reqVO) {
+ if ("agent_import_session".equals(reqVO.getRecordType())) {
+ throw new org.springframework.web.server.ResponseStatusException(
+ org.springframework.http.HttpStatus.FORBIDDEN, "鏅鸿兘浣撹ˉ褰曢檮浠惰浣跨敤琛ュ綍浼氳瘽缁戝畾鎺ュ彛");
+ }
storageAttachmentService.bindAttachments(reqVO);
return success(true);
}
--
Gitblit v1.9.3