model

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter struct {
	Column string
	Value  any
	Type   FilterType
}

type FilterType

type FilterType string
const (
	FilterTypePartialMatch FilterType = "partialMatch"
	FilterTypeExactMatch   FilterType = "exactMatch"
)

type Pagination

type Pagination struct {
	Page  int
	Limit int
}

type SelectQuery

type SelectQuery struct {
	Filters    []Filter
	Sorting    []Sorting
	Entity     interface{}
	Pagination Pagination
}

type SortDirection

type SortDirection string
const (
	SortDirectionAsc  SortDirection = "asc"
	SortDirectionDesc SortDirection = "desc"
)

type Sorting

type Sorting struct {
	Column    string
	Direction SortDirection
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL