feat: add pagination to projects page (resolve #302)

This commit is contained in:
Ferdinand Mütsch
2023-09-26 23:18:01 +02:00
parent a06be491d9
commit ec2c6b1090
15 changed files with 490 additions and 459 deletions

View File

@@ -2,6 +2,7 @@ package mocks
import (
"github.com/muety/wakapi/models"
"github.com/muety/wakapi/utils"
"github.com/stretchr/testify/mock"
"time"
)
@@ -80,7 +81,7 @@ func (m *HeartbeatServiceMock) DeleteByUserBefore(u *models.User, t time.Time) e
return args.Error(0)
}
func (m *HeartbeatServiceMock) GetUserProjectStats(u *models.User, t, t2 time.Time, b bool) ([]*models.ProjectStats, error) {
args := m.Called(u, t, t2, b)
func (m *HeartbeatServiceMock) GetUserProjectStats(u *models.User, t, t2 time.Time, p *utils.PageParams, b bool) ([]*models.ProjectStats, error) {
args := m.Called(u, t, t2, p, b)
return args.Get(0).([]*models.ProjectStats), args.Error(1)
}