| | |
| | | |
| | | /** |
| | | * 保存通用文件上传的附件信息 |
| | | * @param storageBlobs 文件信息列表 |
| | | * @param recordId 管理记录id |
| | | * @param recordType 关联记录类型 |
| | | * @param fileType 文件类型 |
| | | */ |
| | | @PostMapping("/add") |
| | | public R add(@RequestBody List<StorageBlobDTO> storageBlobs, Long recordId, String recordType, String fileType) { |
| | | storageAttachmentService.saveStorageAttachment(storageBlobs, recordId, recordType, fileType); |
| | | public R add(@RequestBody StorageAttachmentDTO storageAttachmentDTO) { |
| | | storageAttachmentService.saveStorageAttachment(storageAttachmentDTO); |
| | | return R.ok(); |
| | | } |
| | | } |