This commit is contained in:
Daniel 2025-08-09 17:10:22 +08:00
parent 8ca9f119d0
commit a9c2ae7351
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
5 changed files with 35 additions and 0 deletions

View file

@ -167,6 +167,10 @@ func (gallery *Gallery) SetItems(items []Item) {
}
}
func (gallery *Gallery) CountItems() int {
return len(gallery.Cards)
}
func (gallery *Gallery) GetFields() (ret []Field) {
ret = []Field{}
for _, field := range gallery.Fields {