mixin

package
v0.0.0-...-53a20a4 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultSize int = 20
View Source
const MaxSize int = 100

Variables

This section is empty.

Functions

func CheckJSON

func CheckJSON(context *gin.Context, form any) bool

func CommonResponse

func CommonResponse(context *gin.Context, res interface{}, er *error.Error)

func List

func List(context *gin.Context, qs *gorm.DB) (
	*gorm.DB, int64, int, int,
)

func ListResponse

func ListResponse(
	context *gin.Context,
	data interface{},
	total int64,
	page int,
	size int,
)

Types

type PageNumberPagination

type PageNumberPagination struct {
	Page int `form:"page"`
	Size int `form:"size"`
}

Jump to

Keyboard shortcuts

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