yaozc
2023-02-21 744ddc3550c2bdbe61f7326e4ab7c00dfa3ac51f
eladmin-master/eladmin-tools/src/main/java/me/zhengjie/rest/LocalStorageController.java
@@ -63,8 +63,8 @@
    @ApiOperation("上传文件")
    @PreAuthorize("@el.check('storage:add')")
    public ResponseEntity<Object> createFile(@RequestParam String name, @RequestParam("file") MultipartFile file){
        localStorageService.create(name, file);
        return new ResponseEntity<>(HttpStatus.CREATED);
        LocalStorage localStorage = localStorageService.create(null, file);
        return new ResponseEntity<>(localStorage, HttpStatus.CREATED);
    }
    @ApiOperation("上传图片")