class FileController {

    @PostMapping
    @ApiOperation("上传文件")
    @PreAuthorize("isAuthenticated()")
    public Result<FileInfo> uploadFile(MultipartFile file) throws IOException {
        FileInfo fileInfo = fileInfoService.uploadFile(file);
        return ResultUtil.success(fileInfo);
    }

}