weicd
2023-11-21 a4077d90d300cf50c563f44953ed84322c5d5ff2
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("上传图片")