🎨 move code

pull/548/head
微凉 2021-11-30 10:00:06 +08:00
parent 733b38b435
commit 5d6463b75a
4 changed files with 4 additions and 4 deletions

View File

@ -164,3 +164,5 @@ func (driver GoogleDrive) Proxy(c *gin.Context, account *model.Account) {
func (driver GoogleDrive) Preview(path string, account *model.Account) (interface{}, error) {
return nil, nil
}
var _ Driver = (*GoogleDrive)(nil)

View File

@ -151,8 +151,6 @@ func (driver GoogleDrive) GetFiles(id string, account *model.Account) ([]GoogleF
// return nil, drivers.PathNotFound
//}
var _ Driver = (*GoogleDrive)(nil)
func init() {
RegisterDriver(&GoogleDrive{})
googleClient.SetRetryCount(3)

View File

@ -204,3 +204,5 @@ func (driver Onedrive) Proxy(c *gin.Context, account *model.Account) {
func (driver Onedrive) Preview(path string, account *model.Account) (interface{}, error) {
return nil, nil
}
var _ Driver = (*Onedrive)(nil)

View File

@ -176,8 +176,6 @@ func (driver Onedrive) GetFile(account *model.Account, path string) (*OneFile, e
return &file, nil
}
var _ Driver = (*Onedrive)(nil)
func init() {
RegisterDriver(&Onedrive{})
oneClient.SetRetryCount(3)