diff --git a/pkg/filemanager/driver/cos/cos.go b/pkg/filemanager/driver/cos/cos.go index 1f66e7cf..0a3cbe26 100644 --- a/pkg/filemanager/driver/cos/cos.go +++ b/pkg/filemanager/driver/cos/cos.go @@ -234,7 +234,7 @@ func (handler Driver) CORS() error { return err } -// Get 获取文件 +// Open opens a file for reading func (handler *Driver) Open(ctx context.Context, path string) (*os.File, error) { return nil, errors.New("not implemented") } diff --git a/pkg/filemanager/workflows/remote_download.go b/pkg/filemanager/workflows/remote_download.go index e11a953f..c02ae566 100644 --- a/pkg/filemanager/workflows/remote_download.go +++ b/pkg/filemanager/workflows/remote_download.go @@ -44,10 +44,10 @@ type ( } RemoteDownloadTaskPhase string RemoteDownloadTaskState struct { - SrcFileUri string `json:"src_file_uri,omitempty"` - SrcUri string `json:"src_uri,omitempty"` - Dst string `json:"dst,omitempty"` - FileName string `json:"file_name,omitempty"` + SrcFileUri string `json:"src_file_uri,omitempty"` + SrcUri string `json:"src_uri,omitempty"` + Dst string `json:"dst,omitempty"` + FileName string `json:"file_name,omitempty"` // Provider pins the task to a node offering this downloader provider // (e.g. "aria2"/"qbittorrent"). Empty = pool picks any capable node. Provider string `json:"provider,omitempty"` diff --git a/pkg/filemanager/workflows/workflows.go b/pkg/filemanager/workflows/workflows.go index 1356d099..ddd35fbc 100644 --- a/pkg/filemanager/workflows/workflows.go +++ b/pkg/filemanager/workflows/workflows.go @@ -8,8 +8,8 @@ import ( "time" "github.com/cloudreve/Cloudreve/v4/application/dependency" - "github.com/cloudreve/Cloudreve/v4/inventory/types" "github.com/cloudreve/Cloudreve/v4/inventory" + "github.com/cloudreve/Cloudreve/v4/inventory/types" "github.com/cloudreve/Cloudreve/v4/pkg/cluster" "github.com/cloudreve/Cloudreve/v4/pkg/filemanager/fs" "github.com/cloudreve/Cloudreve/v4/pkg/filemanager/fs/dbfs" diff --git a/pkg/request/request_test.go b/pkg/request/request_test.go index 3c58756a..07e28083 100644 --- a/pkg/request/request_test.go +++ b/pkg/request/request_test.go @@ -239,7 +239,7 @@ func TestBlackHole(t *testing.T) { func TestHTTPClient_TPSLimit(t *testing.T) { a := assert.New(t) - client := NewClient(nil, ) + client := NewClient(nil) finished := make(chan struct{}) go func() { diff --git a/service/basic/site.go b/service/basic/site.go index 1796e8f7..196be9b6 100644 --- a/service/basic/site.go +++ b/service/basic/site.go @@ -131,18 +131,18 @@ func (s *GetSettingService) GetSiteConfig(c *gin.Context) (*SiteConfig, error) { } } return &SiteConfig{ - MaxBatchSize: maxBatchSize, - FileViewers: fileViewers, - DefaultViewerMapping: settings.DefaultViewerMapping(c), - Icons: explorerSettings.Icons, - MapProvider: mapSettings.Provider, - GoogleMapTileType: mapSettings.GoogleTileType, - MapboxAK: mapSettings.MapboxAK, - ThumbnailWidth: w, - ThumbnailHeight: h, - CustomProps: customProps, - ShowEncryptionStatus: showEncryptionStatus, - FullTextSearch: settings.FTSEnabled(c), + MaxBatchSize: maxBatchSize, + FileViewers: fileViewers, + DefaultViewerMapping: settings.DefaultViewerMapping(c), + Icons: explorerSettings.Icons, + MapProvider: mapSettings.Provider, + GoogleMapTileType: mapSettings.GoogleTileType, + MapboxAK: mapSettings.MapboxAK, + ThumbnailWidth: w, + ThumbnailHeight: h, + CustomProps: customProps, + ShowEncryptionStatus: showEncryptionStatus, + FullTextSearch: settings.FTSEnabled(c), RemoteDownloadProviders: remoteDownloadProviders(c, dep), }, nil case "emojis":