feat(explorer): save user's view setting to server / optionally share view setting via share link (#2232)
This commit is contained in:
@@ -75,6 +75,8 @@ type (
|
||||
CastStoragePolicyOnSlave(ctx context.Context, policy *ent.StoragePolicy) *ent.StoragePolicy
|
||||
// GetStorageDriver gets storage driver for given policy
|
||||
GetStorageDriver(ctx context.Context, policy *ent.StoragePolicy) (driver.Handler, error)
|
||||
// PatchView patches the view setting of a file
|
||||
PatchView(ctx context.Context, uri *fs.URI, view *types.ExplorerView) error
|
||||
}
|
||||
|
||||
ShareManagement interface {
|
||||
@@ -111,6 +113,7 @@ type (
|
||||
IsPrivate bool
|
||||
RemainDownloads int
|
||||
Expire *time.Time
|
||||
ShareView bool
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user