接口 FileManage

所有已知实现类:
LocalFileManage, RustfsManage

public interface FileManage

尊重知识产权,CV 请保留版权,海文科技 https://hiver.cc 出品,不允许非法使用,后果自负

作者:
Yazhi Li
  • 方法详细资料

    • getOssSetting

      plus.hiver.module.system.vo.OssSetting getOssSetting()
      获取配置
      返回:
      配置
    • inputStreamUpload

      String inputStreamUpload(InputStream inputStream, String key, org.springframework.web.multipart.MultipartFile file)
      文件流上传
      参数:
      inputStream - 输入流
      key - 路径
      file - 文件
      返回:
      结果
    • inputStreamUpload

      String inputStreamUpload(InputStream inputStream, String fileName)
      文件流上传
      参数:
      inputStream - 输入流
      fileName - 文件名
      返回:
      结果
    • renameFile

      String renameFile(String fromKey, String toKey)
      重命名文件
      参数:
      fromKey - 原key
      toKey - 新key
      返回:
      结果
    • copyFile

      String copyFile(String fromKey, String toKey)
      拷贝文件
      参数:
      fromKey - 原key
      toKey - 新key
      返回:
      结果
    • deleteFile

      void deleteFile(String key)
      删除文件
      参数:
      key - 文件名