🎨 add types

This commit is contained in:
微凉
2021-11-30 18:53:37 +08:00
parent fa6c0f78bc
commit 9dcaa9b07a
7 changed files with 13 additions and 6 deletions

View File

@@ -233,7 +233,7 @@ func (driver AliDrive) Preview(path string, account *model.Account) (interface{}
req["category"] = "live_transcoding"
}
default:
return nil, fmt.Errorf("don't support")
return nil, NotSupport
}
_, err = aliClient.R().SetResult(&resp).SetError(&e).
SetHeader("authorization", "Bearer\t"+account.AccessToken).