mirror of
https://gitee.com/xiaonuobase/snowy.git
synced 2026-03-22 02:37:16 +08:00
【新增】文件接口新增插件所需
This commit is contained in:
@@ -12,9 +12,12 @@
|
||||
*/
|
||||
package vip.xiaonuo.dev.api;
|
||||
|
||||
import cn.hutool.json.JSONArray;
|
||||
import cn.hutool.json.JSONObject;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 文件API接口,可参考vip.xiaonuo.dev.core.util.file包下的工具类扩展更多需要的方法
|
||||
*
|
||||
@@ -135,4 +138,20 @@ public interface DevFileApi {
|
||||
* @date 2022/8/4 10:36
|
||||
**/
|
||||
void deleteAbsoluteById(String id);
|
||||
|
||||
/**
|
||||
* 根据文件ids获得文件列表
|
||||
*
|
||||
* @author yubaoshan
|
||||
* @date 2025/8/25 21:18
|
||||
*/
|
||||
JSONArray getFileListByIds(List<String> ids);
|
||||
|
||||
/**
|
||||
* 根据配置的存储类型,返回不同的URL
|
||||
*
|
||||
* @author yubaoshan
|
||||
* @date 2025/8/25 21:18
|
||||
*/
|
||||
String storageFileWithReturnUrlOss(MultipartFile file);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user