mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
16 lines
274 B
Go
16 lines
274 B
Go
package form
|
|
|
|
type Selection struct {
|
|
Photos []string `json:"photos"`
|
|
Albums []string `json:"albums"`
|
|
Labels []string `json:"labels"`
|
|
}
|
|
|
|
func (f Selection) Empty() bool {
|
|
if len(f.Photos) > 0 || len(f.Albums) > 0 || len(f.Labels) > 0 {
|
|
return false
|
|
}
|
|
|
|
return true
|
|
}
|