class FileController {

    @GetMapping("/{id:^[a-zA-Z0-9]+_[a-zA-Z0-9]+_[a-zA-Z0-9]+$}")
    @ApiOperation("下载文件")
    @PreAuthorize("isAuthenticated()")
    public void downloadFile(@ApiParam(value = "文件id", required = true) @PathVariable String id, HttpServletResponse response) throws IOException {
        fileInfoService.downloadFile(id, response);
    }

}