diff options
| author | Saiyed Shizain <saiyedshizain@gmail.com> | 2026-07-22 17:32:55 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-22 17:32:55 +0530 |
| commit | 9b541ca2d0a639eebd9610fcd6385e841da68e0a (patch) | |
| tree | d331e8d858f62cf82d0cb6c3ca96400d4e28edca /internal/service/service.go | |
| parent | 46d2bf8bb5a0d18bdbe613a9346a5757b39e0a35 (diff) | |
| parent | ddd8a37a0eb5623960e4528802263c7cec23af87 (diff) | |
| download | galleryd-9b541ca2d0a639eebd9610fcd6385e841da68e0a.tar.xz galleryd-9b541ca2d0a639eebd9610fcd6385e841da68e0a.zip | |
Merge pull request #13 from RanXom/feat/api
Feat/api: add sorting support to gallery queries
Diffstat (limited to 'internal/service/service.go')
| -rw-r--r-- | internal/service/service.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/service/service.go b/internal/service/service.go index 0b9b253..9eec0b8 100644 --- a/internal/service/service.go +++ b/internal/service/service.go @@ -12,7 +12,10 @@ type GalleryService interface { Reload(ctx context.Context) error // Gallery returns the currently loaded gallery. - Gallery(ctx context.Context) ([]gallery.Photo, error) + Gallery( + ctx context.Context, + query gallery.Query, + ) ([]gallery.Photo, error) // Photo returns a single photo by its ID. Photo(ctx context.Context, id string) (gallery.Photo, error) |