page

package
v0.0.0-...-1569ab3 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Asc  = "asc"
	Desc = "desc"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FilterItem

type FilterItem struct {
	Column   string `json:"column"`
	Value    string `json:"value"`
	Operator string `json:"operator"`
}

type OrderItem

type OrderItem struct {
	Column    string `json:"column"`
	Direction string `json:"direc"` // asc|desc
}

type ReqPage

type ReqPage struct {
	Page    int          `json:"page"`
	Size    int          `json:"size"`
	Orders  []OrderItem  `json:"orders"`
	Filters []FilterItem `json:"filters"`
}

type RespPage

type RespPage struct {
	Page     int         `json:"page"`
	Size     int         `json:"size"`
	Total    int64       `json:"total"`
	DataList interface{} `json:"dataList"`
}

Jump to

Keyboard shortcuts

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