feat(explorer): save user's view setting to server / optionally share view setting via share link (#2232)

This commit is contained in:
Aaron Liu
2025-06-05 10:00:37 +08:00
parent c13b7365b0
commit 522fcca6af
31 changed files with 704 additions and 158 deletions

View File

@@ -5,6 +5,7 @@ import (
"entgo.io/ent/dialect"
"entgo.io/ent/schema/edge"
"entgo.io/ent/schema/field"
"github.com/cloudreve/Cloudreve/v4/inventory/types"
)
// Share holds the schema definition for the Share entity.
@@ -30,6 +31,7 @@ func (Share) Fields() []ent.Field {
field.Int("remain_downloads").
Nillable().
Optional(),
field.JSON("props", &types.ShareProps{}).Optional(),
}
}