|
|
@@ -11,7 +11,6 @@ interface AliOssServiceInterface
|
|
|
*
|
|
|
* @param string $object 原数据路径
|
|
|
* @param string $link 软连接路径
|
|
|
- * @return mixed
|
|
|
*/
|
|
|
public function putSymlink(string $object, string $link);
|
|
|
|
|
|
@@ -20,7 +19,6 @@ interface AliOssServiceInterface
|
|
|
*
|
|
|
* @param string $object 路径
|
|
|
* @param int $time_out 超时时间(秒)
|
|
|
- * @return mixed
|
|
|
*/
|
|
|
public function makeSignUrl(string $object, int $time_out = 20);
|
|
|
|
|
|
@@ -28,7 +26,6 @@ interface AliOssServiceInterface
|
|
|
* 获取文件的元数据信息
|
|
|
*
|
|
|
* @param string $object
|
|
|
- * @return mixed
|
|
|
*/
|
|
|
public function getObjectMeta(string $object);
|
|
|
|
|
|
@@ -37,15 +34,14 @@ interface AliOssServiceInterface
|
|
|
*
|
|
|
* @param string $object
|
|
|
* @param string $new_object
|
|
|
- * @return mixed
|
|
|
+ * @param bool $private
|
|
|
*/
|
|
|
- public function copyObject(string $object, string $new_object);
|
|
|
+ public function copyObject(string $object, string $new_object, bool $private = false): bool;
|
|
|
|
|
|
/**
|
|
|
* 删除OSS文件
|
|
|
*
|
|
|
* @param string|array $object
|
|
|
- * @return mixed
|
|
|
*/
|
|
|
public function deleteObject($object): bool;
|
|
|
}
|