helper

package
v0.0.0-...-3839eb7 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequiredRules

func RequiredRules(rule []vax.Rule) []vax.Rule

func Rules

func Rules(rule ...vax.Rule) []vax.Rule

Types

type PageOption

type PageOption struct {
	// page
	Page int `json:"page" uri:"page" form:"page"  label:"field.page" example:"1"`
	// size of page
	Size int `json:"size" uri:"size" form:"size" label:"field.pagesize" example:"10"`
	// if is reverse order
	Desc bool `json:"desc" uri:"desc" form:"desc" example:"true"`
}

func (PageOption) Validate

func (p PageOption) Validate(lang string) error

type RegexRule

type RegexRule struct {
	Regx *regexp.Regexp
	I18n string
}

Jump to

Keyboard shortcuts

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