Class FileContentController
java.lang.Object
io.github.seenings.file.controller.FileContentController
@RestController
@RequestMapping("/seen/rest-v1/file/file-content")
public class FileContentController
extends Object
文件内容
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<org.springframework.core.io.InputStreamResource> photoIdToResourceByCache(Integer photoId) 根据照片ID获取资源,缓存org.springframework.http.ResponseEntity<org.springframework.core.io.InputStreamResource> photoIdToResources(Integer photoId) 根据照片ID获取文件流org.springframework.http.ResponseEntity<org.springframework.core.io.AbstractResource> photoIdToResourcesByCompress(Integer photoId) 根据照片ID获取文件流
-
Constructor Details
-
FileContentController
public FileContentController()
-
-
Method Details
-
photoIdToResourceByCache
@GetMapping("photo-id-to-resource-by-cache/{photoId}") public org.springframework.http.ResponseEntity<org.springframework.core.io.InputStreamResource> photoIdToResourceByCache(@PathVariable Integer photoId) 根据照片ID获取资源,缓存- Parameters:
photoId- 照片ID- Returns:
- 资源
-
photoIdToResources
@GetMapping("photo-id-to-resources") public org.springframework.http.ResponseEntity<org.springframework.core.io.InputStreamResource> photoIdToResources(@RequestParam Integer photoId) 根据照片ID获取文件流- Parameters:
photoId- 照片ID- Returns:
- 文件流
-
photoIdToResourcesByCompress
@GetMapping("photo-id-to-resources-by-compress") public org.springframework.http.ResponseEntity<org.springframework.core.io.AbstractResource> photoIdToResourcesByCompress(@RequestParam Integer photoId) 根据照片ID获取文件流- Parameters:
photoId- 照片ID- Returns:
- 文件流
-