Interface HttpPhotoService


@HttpExchange("seen/feign-v1/file/photo") public interface HttpPhotoService
HttpPhotoService
Since:
2022-12-31
Author:
chixuehui
  • Method Details

    • photoIdToPhotoUrl

      @PostExchange("photo-id-to-photo-url") Map<Integer,String> photoIdToPhotoUrl(@RequestBody Set<Integer> photoIds)
      根据照片ID获取照片路径
      Parameters:
      photoIds - 照片ID
      Returns:
      照片ID对应照片路径
    • photoIdToLongPhotoUrl

      @PostExchange("photo-id-to-long-photo-url") Map<Integer,String> photoIdToLongPhotoUrl(@RequestBody Set<Integer> photoIds)
      根据照片ID获取长照片路径(含路径头)
      Parameters:
      photoIds - 照片ID
      Returns:
      照片ID对应照片路径
      See Also:
      • PublicConstant.PHOTO_VERSION
    • setPath

      @PostExchange("set-path") Integer setPath(@RequestParam("path") String path, @RequestParam("userId") Long userId)
      设置路径
      Parameters:
      path - 路径
      userId - 用户
      Returns:
      路径ID
    • setPathByMinio

      @PostExchange("set-path-minio") Integer setPathByMinio(@RequestParam("path") String path, @RequestParam("userId") Long userId)
    • photoIdToStorageTypeAndPath

      @PostExchange("photo-id-to-storage-type-and-path") Map<Integer, io.github.seenings.file.model.StorageTypeAndPath> photoIdToStorageTypeAndPath(@RequestBody Set<Integer> photoIds)
    • photoIdToFileName

      @PostExchange("photo-id-to-file-name") Map<Integer,String> photoIdToFileName(@RequestBody Set<Integer> photoIds)