mirror of
https://github.com/stashapp/stash.git
synced 2025-12-06 08:26:00 +01:00
* Add UI support for setting containing groups * Show containing groups in group details panel * Move tag hierarchical filter code into separate type * Add depth to scene_count and add sub_group_count * Add sub-groups tab to groups page * Add containing groups to edit groups dialog * Show containing group description in sub-group view * Show group scene number in group scenes view * Add ability to drag move grid cards * Add sub group order option * Add reorder sub-groups interface * Separate page size selector component * Add interfaces to add and remove sub-groups to a group * Separate MultiSet components * Allow setting description while setting containing groups
46 lines
1,010 B
Go
46 lines
1,010 B
Go
package group
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/stashapp/stash/pkg/models"
|
|
)
|
|
|
|
type CreatorUpdater interface {
|
|
models.GroupGetter
|
|
models.GroupCreator
|
|
models.GroupUpdater
|
|
|
|
models.ContainingGroupLoader
|
|
models.SubGroupLoader
|
|
|
|
AnscestorFinder
|
|
SubGroupIDFinder
|
|
SubGroupAdder
|
|
SubGroupRemover
|
|
SubGroupReorderer
|
|
}
|
|
|
|
type AnscestorFinder interface {
|
|
FindInAncestors(ctx context.Context, ascestorIDs []int, ids []int) ([]int, error)
|
|
}
|
|
|
|
type SubGroupIDFinder interface {
|
|
FindSubGroupIDs(ctx context.Context, containingID int, ids []int) ([]int, error)
|
|
}
|
|
|
|
type SubGroupAdder interface {
|
|
AddSubGroups(ctx context.Context, groupID int, subGroups []models.GroupIDDescription, insertIndex *int) error
|
|
}
|
|
|
|
type SubGroupRemover interface {
|
|
RemoveSubGroups(ctx context.Context, groupID int, subGroupIDs []int) error
|
|
}
|
|
|
|
type SubGroupReorderer interface {
|
|
ReorderSubGroups(ctx context.Context, groupID int, subGroupIDs []int, insertID int, insertAfter bool) error
|
|
}
|
|
|
|
type Service struct {
|
|
Repository CreatorUpdater
|
|
}
|