Documentation ¶
Index ¶
Constants ¶
View Source
const (
PaginationSelectFormat = "%s, COUNT(*) OVER() AS total"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommonService ¶
type CommonService struct {
// contains filtered or unexported fields
}
func (CommonService) BuildPaginatedSorted ¶
func (s CommonService) BuildPaginatedSorted(page, perPage int, sort *string, unscoped bool) *gorm.DB
BuildPaginatedSorted returns prepared request with pagination and sorting, also unscoped feature supported
Click to show internal directories.
Click to hide internal directories.