Documentation ¶
Index ¶
- type Pagination
- func (service *Pagination) Count(filters []request.FilterRequest) (int, error)
- func (service *Pagination) FindAll(filters []request.FilterRequest, findRequest request.FindRequest, ...) ([]map[string]interface{}, error)
- func (service *Pagination) FindPaginated(filters []request.FilterRequest, pagination request.PaginationRequest, ...) (*response.PaginationResponse, error)
- func (service *Pagination) FindPaginatedOffset(filters []request.FilterRequest, pagination request.PaginationOffsetRequest, ...) (*response.PaginationOffsetResponse, error)
- func (service *Pagination) FindSelect2(filters []request.FilterRequest, infiniteScroll request.InfiniteScrollRequest, ...) (*response.Select2Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pagination ¶
type Pagination struct {
// contains filtered or unexported fields
}
func PaginationService ¶
func PaginationService(db *gorm.DB, baseParams types.ListParams) *Pagination
func (*Pagination) Count ¶
func (service *Pagination) Count(filters []request.FilterRequest) (int, error)
func (*Pagination) FindAll ¶
func (service *Pagination) FindAll(filters []request.FilterRequest, findRequest request.FindRequest, exclusions *[]string) ([]map[string]interface{}, error)
func (*Pagination) FindPaginated ¶
func (service *Pagination) FindPaginated(filters []request.FilterRequest, pagination request.PaginationRequest, exclusions *[]string) (*response.PaginationResponse, error)
func (*Pagination) FindPaginatedOffset ¶
func (service *Pagination) FindPaginatedOffset(filters []request.FilterRequest, pagination request.PaginationOffsetRequest, exclusions *[]string) (*response.PaginationOffsetResponse, error)
func (*Pagination) FindSelect2 ¶
func (service *Pagination) FindSelect2(filters []request.FilterRequest, infiniteScroll request.InfiniteScrollRequest, valueAttribute, textAttribute string) (*response.Select2Response, error)
Click to show internal directories.
Click to hide internal directories.