From 80b6cbfc9c861469146318d0b3dd5f8b8b525b8a Mon Sep 17 00:00:00 2001
From: xiejun <xiejun@vci-tech.com>
Date: 星期五, 01 十一月 2024 15:11:19 +0800
Subject: [PATCH] Revert "集成获取mdm分发通用数据格式接口集成"

---
 Source/BladeX-Tool/blade-starter-oss/src/main/java/org/springblade/core/oss/OssTemplate.java |  203 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 203 insertions(+), 0 deletions(-)

diff --git a/Source/BladeX-Tool/blade-starter-oss/src/main/java/org/springblade/core/oss/OssTemplate.java b/Source/BladeX-Tool/blade-starter-oss/src/main/java/org/springblade/core/oss/OssTemplate.java
new file mode 100644
index 0000000..a65b4cf
--- /dev/null
+++ b/Source/BladeX-Tool/blade-starter-oss/src/main/java/org/springblade/core/oss/OssTemplate.java
@@ -0,0 +1,203 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 搴勯獮 (smallchill@163.com)
+ */
+package org.springblade.core.oss;
+
+
+import org.springblade.core.oss.model.BladeFile;
+import org.springblade.core.oss.model.OssFile;
+import org.springframework.web.multipart.MultipartFile;
+
+import java.io.InputStream;
+import java.util.List;
+
+/**
+ * OssTemplate鎶借薄API
+ *
+ * @author Chill
+ */
+public interface OssTemplate {
+
+	/**
+	 * 鍒涘缓 瀛樺偍妗�
+	 *
+	 * @param bucketName 瀛樺偍妗跺悕绉�
+	 */
+	void makeBucket(String bucketName);
+
+	/**
+	 * 鍒犻櫎 瀛樺偍妗�
+	 *
+	 * @param bucketName 瀛樺偍妗跺悕绉�
+	 */
+	void removeBucket(String bucketName);
+
+	/**
+	 * 瀛樺偍妗舵槸鍚﹀瓨鍦�
+	 *
+	 * @param bucketName 瀛樺偍妗跺悕绉�
+	 * @return boolean
+	 */
+	boolean bucketExists(String bucketName);
+
+	/**
+	 * 鎷疯礉鏂囦欢
+	 *
+	 * @param bucketName     瀛樺偍妗跺悕绉�
+	 * @param fileName       瀛樺偍妗舵枃浠跺悕绉�
+	 * @param destBucketName 鐩爣瀛樺偍妗跺悕绉�
+	 */
+	void copyFile(String bucketName, String fileName, String destBucketName);
+
+	/**
+	 * 鎷疯礉鏂囦欢
+	 *
+	 * @param bucketName     瀛樺偍妗跺悕绉�
+	 * @param fileName       瀛樺偍妗舵枃浠跺悕绉�
+	 * @param destBucketName 鐩爣瀛樺偍妗跺悕绉�
+	 * @param destFileName   鐩爣瀛樺偍妗舵枃浠跺悕绉�
+	 */
+	void copyFile(String bucketName, String fileName, String destBucketName, String destFileName);
+
+	/**
+	 * 鑾峰彇鏂囦欢淇℃伅
+	 *
+	 * @param fileName 瀛樺偍妗舵枃浠跺悕绉�
+	 * @return InputStream
+	 */
+	OssFile statFile(String fileName);
+
+	/**
+	 * 鑾峰彇鏂囦欢淇℃伅
+	 *
+	 * @param bucketName 瀛樺偍妗跺悕绉�
+	 * @param fileName   瀛樺偍妗舵枃浠跺悕绉�
+	 * @return InputStream
+	 */
+	OssFile statFile(String bucketName, String fileName);
+
+	/**
+	 * 鑾峰彇鏂囦欢鐩稿璺緞
+	 *
+	 * @param fileName 瀛樺偍妗跺璞″悕绉�
+	 * @return String
+	 */
+	String filePath(String fileName);
+
+	/**
+	 * 鑾峰彇鏂囦欢鐩稿璺緞
+	 *
+	 * @param bucketName 瀛樺偍妗跺悕绉�
+	 * @param fileName   瀛樺偍妗跺璞″悕绉�
+	 * @return String
+	 */
+	String filePath(String bucketName, String fileName);
+
+	/**
+	 * 鑾峰彇鏂囦欢鍦板潃
+	 *
+	 * @param fileName 瀛樺偍妗跺璞″悕绉�
+	 * @return String
+	 */
+	String fileLink(String fileName);
+
+	/**
+	 * 鑾峰彇鏂囦欢鍦板潃
+	 *
+	 * @param bucketName 瀛樺偍妗跺悕绉�
+	 * @param fileName   瀛樺偍妗跺璞″悕绉�
+	 * @return String
+	 */
+	String fileLink(String bucketName, String fileName);
+
+	/**
+	 * 涓婁紶鏂囦欢
+	 *
+	 * @param file 涓婁紶鏂囦欢绫�
+	 * @return BladeFile
+	 */
+	BladeFile putFile(MultipartFile file);
+
+	/**
+	 * 涓婁紶鏂囦欢
+	 *
+	 * @param file     涓婁紶鏂囦欢绫�
+	 * @param fileName 涓婁紶鏂囦欢鍚�
+	 * @return BladeFile
+	 */
+	BladeFile putFile(String fileName, MultipartFile file);
+
+	/**
+	 * 涓婁紶鏂囦欢
+	 *
+	 * @param bucketName 瀛樺偍妗跺悕绉�
+	 * @param fileName   涓婁紶鏂囦欢鍚�
+	 * @param file       涓婁紶鏂囦欢绫�
+	 * @return BladeFile
+	 */
+	BladeFile putFile(String bucketName, String fileName, MultipartFile file);
+
+	/**
+	 * 涓婁紶鏂囦欢
+	 *
+	 * @param fileName 瀛樺偍妗跺璞″悕绉�
+	 * @param stream   鏂囦欢娴�
+	 * @return BladeFile
+	 */
+	BladeFile putFile(String fileName, InputStream stream);
+
+	/**
+	 * 涓婁紶鏂囦欢
+	 *
+	 * @param bucketName 瀛樺偍妗跺悕绉�
+	 * @param fileName   瀛樺偍妗跺璞″悕绉�
+	 * @param stream     鏂囦欢娴�
+	 * @return BladeFile
+	 */
+	BladeFile putFile(String bucketName, String fileName, InputStream stream);
+
+	/**
+	 * 鍒犻櫎鏂囦欢
+	 *
+	 * @param fileName 瀛樺偍妗跺璞″悕绉�
+	 */
+	void removeFile(String fileName);
+
+	/**
+	 * 鍒犻櫎鏂囦欢
+	 *
+	 * @param bucketName 瀛樺偍妗跺悕绉�
+	 * @param fileName   瀛樺偍妗跺璞″悕绉�
+	 */
+	void removeFile(String bucketName, String fileName);
+
+	/**
+	 * 鎵归噺鍒犻櫎鏂囦欢
+	 *
+	 * @param fileNames 瀛樺偍妗跺璞″悕绉伴泦鍚�
+	 */
+	void removeFiles(List<String> fileNames);
+
+	/**
+	 * 鎵归噺鍒犻櫎鏂囦欢
+	 *
+	 * @param bucketName 瀛樺偍妗跺悕绉�
+	 * @param fileNames  瀛樺偍妗跺璞″悕绉伴泦鍚�
+	 */
+	void removeFiles(String bucketName, List<String> fileNames);
+
+
+}

--
Gitblit v1.9.3