feat(explorer): advance delete options for users

This commit is contained in:
Aaron Liu
2023-02-07 20:08:22 +08:00
parent 1c1cd9b342
commit d67d0512f8
4 changed files with 16 additions and 4 deletions

View File

@@ -41,6 +41,7 @@ type group struct {
CompressEnabled bool `json:"compress"`
WebDAVEnabled bool `json:"webdav"`
SourceBatchSize int `json:"sourceBatch"`
AdvanceDelete bool `json:"advanceDelete"`
}
type tag struct {
@@ -100,6 +101,7 @@ func BuildUser(user model.User) User {
CompressEnabled: user.Group.OptionsSerialized.ArchiveTask,
WebDAVEnabled: user.Group.WebDAVEnabled,
SourceBatchSize: user.Group.OptionsSerialized.SourceBatchSize,
AdvanceDelete: user.Group.OptionsSerialized.AdvanceDelete,
},
Tags: buildTagRes(tags),
}