Documentation ¶ Index ¶ type ListReq func NewListReq[T Ordered](pageNo, pageSize int) *ListReq[T] func (req *ListReq[T]) WithRange(field string, start, end T, include bool) *ListReq[T] func (req *ListReq[T]) WithSort(field string, typ request.SortType) *ListReq[T] type Ordered Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type ListReq ¶ type ListReq[T Ordered] struct { request.PageSortReq *request.RangeReq[T] } func NewListReq ¶ func NewListReq[T Ordered](pageNo, pageSize int) *ListReq[T] func (*ListReq[T]) WithRange ¶ func (req *ListReq[T]) WithRange(field string, start, end T, include bool) *ListReq[T] func (*ListReq[T]) WithSort ¶ func (req *ListReq[T]) WithSort(field string, typ request.SortType) *ListReq[T] type Ordered ¶ type Ordered interface { constraints.Ordered | time.Time } Source Files ¶ View all Source files type.go Click to show internal directories. Click to hide internal directories.