go-ddd-api
go-ddd-api copied to clipboard
Error Unresolved reference 'Pagging'
There's error on path /application/news.go
it said error Unresolved reference 'Pagging'
on function GetAllNews()
func GetAllNews(limit int, page int) ([]domain.News, error) {
...
pagination.Pagging(&pagination.Param{
DB: conn.Preload("Topic"),
Page: page,
Limit: limit,
OrderBy: []string{"id desc"},
}, &news)
...
}
looks like the lib "github.com/biezhi/gorm-paginator/pagination" doesn't have that function anymore
change it to pagination.Paging
#3