| | |
| | | package com.qxueyou.scc.teach.res.service; |
| | | |
| | | |
| | | import com.obs.services.model.PutObjectResult; |
| | | import com.qxueyou.scc.base.model.FileMeta; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | |
| | | import java.io.InputStream; |
| | | import java.util.List; |
| | | |
| | | |
| | | /** |
| | | * @Description 华为云OBS服务接口 |
| | | * @author wuhuiju |
| | | * @date 2022/12/2 17:01 |
| | | */ |
| | | public interface HweiYunOBSService { |
| | | |
| | | |
| | | /** |
| | | * @Description 删除文件 |
| | | * @author wuhuiju |
| | |
| | | * @return: boolean 执行结果 |
| | | */ |
| | | boolean delete(String objectKey); |
| | | |
| | | |
| | | /** |
| | | * @Description 批量删除文件 |
| | | * @author wuhuiju |
| | |
| | | * @return: boolean 执行结果 |
| | | */ |
| | | boolean delete(List<String> objectKeys); |
| | | |
| | | |
| | | /** |
| | | * @Description 上传文件 |
| | | * @author wuhuiju |
| | |
| | | * @param: objectKey 文件名称 |
| | | * @return: java.lang.String url访问路径 |
| | | */ |
| | | String fileUpload(MultipartFile uploadFile, String objectKey); |
| | | |
| | | List<FileMeta> fileUpload(MultipartFile uploadFile, String objectKey); |
| | | |
| | | /** |
| | | * @Description 文件下载 |
| | | * @author wuhuiju |
| | |
| | | */ |
| | | InputStream fileDownload(String objectKey); |
| | | } |
| | | |