refactor: 删除不需要文件
This commit is contained in:
parent
de493ef09c
commit
d27857422f
|
@ -83,11 +83,11 @@ public class FilesController {
|
|||
return filesService.downloadFilesByFilepath(filepath);
|
||||
}
|
||||
|
||||
// 无法做权限校验
|
||||
// @Operation(summary = "根据文件名访问resource下文件", description = "根据文件名访问resource下文件")
|
||||
// @GetMapping("noManage/resourceFiles/{filename}")
|
||||
// public ResponseEntity<Resource> getResourceByFilename(@PathVariable String filename) {
|
||||
// Resource file = new ClassPathResource("static/" + filename);
|
||||
// // 无法做权限校验
|
||||
// @Operation(summary = "根据文件名访问resource下图片文件", description = "根据文件名访问resource下文件")
|
||||
// @GetMapping("noAuth/getResourceImagesByFilename/{filename}")
|
||||
// public ResponseEntity<Resource> getResourceImagesByFilename(@PathVariable String filename) {
|
||||
// Resource file = new ClassPathResource("static/images/" + filename);
|
||||
// if (!file.exists()) throw new BunnyException(ResultCodeEnum.FILE_NOT_EXIST);
|
||||
// return ResponseEntity.ok().body(file);
|
||||
// }
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 29 KiB |
Loading…
Reference in New Issue