| | |
| | | @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)); |
| | | } |
| | | |
| | |
| | | @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); |
| | | } |