接口 FileService

所有已知实现类:
FileServiceImpl

public interface FileService
文件 Service 接口
作者:
xiaomi
  • 方法详细资料

    • getFilePage

      PageResult<FileDO> getFilePage(FilePageReqVO pageReqVO)
      获得文件分页
      参数:
      pageReqVO - 分页查询
      返回:
      文件分页
    • createFile

      String createFile(String name, String path, byte[] content, String source)
      保存文件,并返回文件的访问路径
      参数:
      name - 文件名称
      path - 文件路径
      content - 文件内容
      source - 文件来源
      返回:
      文件路径
    • createFile

      Long createFile(FileCreateReqVO createReqVO)
      创建文件
      参数:
      createReqVO - 创建信息
      返回:
      编号
    • deleteFile

      void deleteFile(Long id) throws Exception
      删除文件
      参数:
      id - 编号
      抛出:
      Exception
    • getFileContent

      byte[] getFileContent(Long configId, String path) throws Exception
      获得文件内容
      参数:
      configId - 配置编号
      path - 文件路径
      返回:
      文件内容
      抛出:
      Exception
    • getFilePresignedUrl

      FilePresignedUrlRespVO getFilePresignedUrl(String path) throws Exception
      生成文件预签名地址信息
      参数:
      path - 文件路径
      返回:
      预签名地址信息
      抛出:
      Exception