mirror of https://github.com/Xhofe/alist
🎨 move code
parent
733b38b435
commit
5d6463b75a
|
@ -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) {
|
func (driver GoogleDrive) Preview(path string, account *model.Account) (interface{}, error) {
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var _ Driver = (*GoogleDrive)(nil)
|
|
@ -151,8 +151,6 @@ func (driver GoogleDrive) GetFiles(id string, account *model.Account) ([]GoogleF
|
||||||
// return nil, drivers.PathNotFound
|
// return nil, drivers.PathNotFound
|
||||||
//}
|
//}
|
||||||
|
|
||||||
var _ Driver = (*GoogleDrive)(nil)
|
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
RegisterDriver(&GoogleDrive{})
|
RegisterDriver(&GoogleDrive{})
|
||||||
googleClient.SetRetryCount(3)
|
googleClient.SetRetryCount(3)
|
||||||
|
|
|
@ -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) {
|
func (driver Onedrive) Preview(path string, account *model.Account) (interface{}, error) {
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var _ Driver = (*Onedrive)(nil)
|
|
@ -176,8 +176,6 @@ func (driver Onedrive) GetFile(account *model.Account, path string) (*OneFile, e
|
||||||
return &file, nil
|
return &file, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
var _ Driver = (*Onedrive)(nil)
|
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
RegisterDriver(&Onedrive{})
|
RegisterDriver(&Onedrive{})
|
||||||
oneClient.SetRetryCount(3)
|
oneClient.SetRetryCount(3)
|
||||||
|
|
Loading…
Reference in New Issue