feat(media): pagination

This commit is contained in:
Florian Sylvain committed 2026-10-13 19:54:59 +02:00
1 parent 04dc151ed7
commit 63c1e7076e
65 files changed
+2960 -365

No files matched your search

+2
View File
@@ -75,6 +75,7 @@ type mockImageRepo struct {
images map[uint32]imageDomain.Image
nextID uint32
fail failSwitch
listCalls int
failDeleteFor map[uint32]error
deleteCalls []uint32
createCalls int
@@ -169,6 +170,7 @@ func (m *mockImageRepo) Delete(id uint32) error {
}
func (m *mockImageRepo) List(query imageDomain.SearchQuery) ([]imageDomain.Image, error) {
m.listCalls++
if err := m.fail.trigger("List"); err != nil {
return nil, err
}