阿里云oss添加删除接口
This commit is contained in:
@@ -73,3 +73,16 @@ func TestALiYunOSSClient_GetObjectToImage(t *testing.T) {
|
||||
t.Log(img)
|
||||
}
|
||||
}
|
||||
|
||||
func TestALiYunOSSClient_DelObject(t *testing.T) {
|
||||
err := client.NewAliYunOSS()
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
err = client.DelObject("", "test/upload/bizhi2.jpg")
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
} else {
|
||||
t.Log("成功")
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user