sorting

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StructuredSorting

type StructuredSorting struct {
}

func NewStructuredSorting

func NewStructuredSorting() *StructuredSorting

func (StructuredSorting) BuildSelector

func (ss StructuredSorting) BuildSelector(orders []*paginationV1.Sorting) (func(s *sql.Selector), error)

func (StructuredSorting) BuildSelectorWithDefaultField

func (ss StructuredSorting) BuildSelectorWithDefaultField(orders []*paginationV1.Sorting, defaultOrderField string, defaultDesc bool) (func(s *sql.Selector), error)

BuildSelectorWithDefaultField 构建排序选择器 - orderBys: 排序字段列表 - defaultOrderField: 默认排序字段 - defaultDesc: 默认是否降序

Jump to

Keyboard shortcuts

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