8 天以前 d640da3dac5b5f811284ab9a7c386da1e7ab6739
src/main/java/com/ruoyi/basic/controller/StorageAttachmentController.java
@@ -18,19 +18,18 @@
@RestController
@AllArgsConstructor
@RequestMapping("/basic/storage_attachment")
    @RequestMapping("/basic/storage_attachment")
public class StorageAttachmentController {
    private StorageAttachmentService storageAttachmentService;
    /**
     * 分页查询通用文件上传的附件信息
     * @param page 分页参数
     * @param storageAttachmentDTO 关联记录信息
     * @return 分页结果
     */
    @GetMapping("/listPage")
    public R listPage(Page page, StorageAttachmentDTO storageAttachmentDTO) {
        return R.ok(storageAttachmentService.listPage(page, storageAttachmentDTO));
    @GetMapping("/list")
    public R list(StorageAttachmentDTO storageAttachmentDTO) {
        return R.ok(storageAttachmentService.list(storageAttachmentDTO));
    }
    /**
@@ -45,14 +44,10 @@
    /**
     * 保存通用文件上传的附件信息
     * @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();
    }
}