mirror of
https://github.com/muety/wakapi.git
synced 2025-12-06 06:22:41 -08:00
feat: add pagination to projects page (resolve #302)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user