Fix performer validation (#4248)

* Fix performer validation
* Add tests
* Rename QueryCount argument
* Minor refactoring
* Add duplicate alias validation
* Make UI alias validation also case-insensitive
This commit is contained in:
DingDongSoLong4
2023-11-02 07:23:54 +02:00
committed by GitHub
parent d96558704a
commit 4715c5ebb2
11 changed files with 594 additions and 235 deletions

View File

@@ -23,7 +23,7 @@ type PerformerFinder interface {
// PerformerQueryer provides methods to query performers.
type PerformerQueryer interface {
Query(ctx context.Context, performerFilter *PerformerFilterType, findFilter *FindFilterType) ([]*Performer, int, error)
QueryCount(ctx context.Context, galleryFilter *PerformerFilterType, findFilter *FindFilterType) (int, error)
QueryCount(ctx context.Context, performerFilter *PerformerFilterType, findFilter *FindFilterType) (int, error)
}
type PerformerAutoTagQueryer interface {