entity

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NotWhere = "6ca6d99a-2ca3-4734-921d-f3718bb7e179"
)

Variables

This section is empty.

Functions

func CalcPageTotal

func CalcPageTotal(pageSize int, pageCount int) int

CalcPageTotal Calculate the total number of pages

Types

type Condition

type Condition struct {
	Key string
	Val []interface{}
}

Condition Setter

func GetCondition

func GetCondition(key string, val ...interface{}) *Condition

GetCondition get Condition

type PageParam

type PageParam struct {
	CurrentPage int
	PageSize    int
	Params      map[string]interface{}
}

PageParam Paging entity

type PageResult

type PageResult struct {
	CurrentPage int
	PageSize    int
	PageCount   int
	PageTotal   int
	DataList    []map[string]string
}

PageResult Pagination back to the entity

Jump to

Keyboard shortcuts

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