Class PhotoHttpImpl
java.lang.Object
io.github.seenings.photo.api.impl.PhotoHttpImpl
- All Implemented Interfaces:
io.github.seenings.photo.http.HttpPhotoService
@RestController
@RequestMapping("seen/feign-v1/file/photo")
public class PhotoHttpImpl
extends Object
implements io.github.seenings.photo.http.HttpPhotoService
PhotoController
- Since:
- 2022-12-31
- Author:
- chixuehui
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionphotoIdToFileName(Set<Integer> photoIds) 根据照片ID获取文件名photoIdToLongPhotoUrl(Set<Integer> photoIds) 根据照片ID获取长照片路径(含路径头)photoIdToPhotoUrl(Set<Integer> photoIds) 根据照片ID获取照片路径photoIdToStorageTypeAndPath(Set<Integer> photoIds) 根据照片ID获取文件设置路径setPathByMinio(String path, Long userId) 设置路径
-
Constructor Details
-
PhotoHttpImpl
public PhotoHttpImpl()
-
-
Method Details
-
photoIdToPhotoUrl
-
photoIdToLongPhotoUrl
@PostMapping("photo-id-to-long-photo-url") public Map<Integer,String> photoIdToLongPhotoUrl(@RequestBody Set<Integer> photoIds) 根据照片ID获取长照片路径(含路径头)- Specified by:
photoIdToLongPhotoUrlin interfaceio.github.seenings.photo.http.HttpPhotoService- Parameters:
photoIds- 照片ID- Returns:
- 照片ID对应照片路径
- See Also:
-
setPath
-
setPathByMinio
-
photoIdToStorageTypeAndPath
@PostMapping("photo-id-to-storage-type-and-path") public Map<Integer, io.github.seenings.file.model.StorageTypeAndPath> photoIdToStorageTypeAndPath(@RequestBody Set<Integer> photoIds) 根据照片ID获取文件- Specified by:
photoIdToStorageTypeAndPathin interfaceio.github.seenings.photo.http.HttpPhotoService- Parameters:
photoIds- 照片ID- Returns:
- 照片ID对应文件
-
photoIdToFileName
-