style: gofmt storage-policy files

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
pull/3587/head
Tomas Dvorak 2 weeks ago
parent d04e7a0783
commit cd4313ea06

@ -58,9 +58,9 @@ type (
Aria2TaskLimit int `json:"aria2_task_limit,omitempty"` Aria2TaskLimit int `json:"aria2_task_limit,omitempty"`
// Aria2MaxFileSize caps the total byte size of a single download task. // Aria2MaxFileSize caps the total byte size of a single download task.
Aria2MaxFileSize int64 `json:"aria2_max_file_size,omitempty"` Aria2MaxFileSize int64 `json:"aria2_max_file_size,omitempty"`
MaxWalkedFiles int `json:"max_walked_files,omitempty"` MaxWalkedFiles int `json:"max_walked_files,omitempty"`
TrashRetention int `json:"trash_retention,omitempty"` TrashRetention int `json:"trash_retention,omitempty"`
RedirectedSource bool `json:"redirected_source,omitempty"` RedirectedSource bool `json:"redirected_source,omitempty"`
// LoginIPWhitelist restricts sign-in to the given IPs/CIDR ranges. // LoginIPWhitelist restricts sign-in to the given IPs/CIDR ranges.
// Empty means no restriction. // Empty means no restriction.
LoginIPWhitelist []string `json:"login_ip_whitelist,omitempty"` LoginIPWhitelist []string `json:"login_ip_whitelist,omitempty"`

@ -8,6 +8,7 @@ import (
"github.com/cloudreve/Cloudreve/v4/ent/enttest" "github.com/cloudreve/Cloudreve/v4/ent/enttest"
entfile "github.com/cloudreve/Cloudreve/v4/ent/file" entfile "github.com/cloudreve/Cloudreve/v4/ent/file"
entmetadata "github.com/cloudreve/Cloudreve/v4/ent/metadata" entmetadata "github.com/cloudreve/Cloudreve/v4/ent/metadata"
"github.com/cloudreve/Cloudreve/v4/ent/schema"
"github.com/cloudreve/Cloudreve/v4/ent/storagepolicy" "github.com/cloudreve/Cloudreve/v4/ent/storagepolicy"
"github.com/cloudreve/Cloudreve/v4/inventory" "github.com/cloudreve/Cloudreve/v4/inventory"
"github.com/cloudreve/Cloudreve/v4/inventory/types" "github.com/cloudreve/Cloudreve/v4/inventory/types"
@ -15,7 +16,6 @@ import (
"github.com/cloudreve/Cloudreve/v4/pkg/conf" "github.com/cloudreve/Cloudreve/v4/pkg/conf"
"github.com/cloudreve/Cloudreve/v4/pkg/hashid" "github.com/cloudreve/Cloudreve/v4/pkg/hashid"
"github.com/cloudreve/Cloudreve/v4/pkg/logging" "github.com/cloudreve/Cloudreve/v4/pkg/logging"
"github.com/cloudreve/Cloudreve/v4/ent/schema"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

@ -27,7 +27,7 @@ type StoragePolicyBrief struct {
type ( type (
// AllowedPolicyService lists the storage policies the caller's group may use. // AllowedPolicyService lists the storage policies the caller's group may use.
AllowedPolicyService struct{} AllowedPolicyService struct{}
AllowedPolicyParamCtx struct{} AllowedPolicyParamCtx struct{}
// PreferredPolicyService sets or clears a directory's preferred storage // PreferredPolicyService sets or clears a directory's preferred storage

Loading…
Cancel
Save