validators

package
v0.0.0-...-b411c9a Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheCodeValidator

type CacheCodeValidator struct {
	ginValidator.BaseValidator
}

func (*CacheCodeValidator) Messages

func (c *CacheCodeValidator) Messages() string

Messages 规则错误提示信息

func (*CacheCodeValidator) TagName

func (c *CacheCodeValidator) TagName() string

func (*CacheCodeValidator) Validator

func (c *CacheCodeValidator) Validator(fl validator.FieldLevel) bool

Validator 规则验证逻辑

type DemoValidator

type DemoValidator struct {
	ginValidator.BaseValidator
}

func (*DemoValidator) Messages

func (d *DemoValidator) Messages() string

func (*DemoValidator) TagName

func (d *DemoValidator) TagName() string

func (*DemoValidator) Validator

func (d *DemoValidator) Validator(fl validator.FieldLevel) bool

Jump to

Keyboard shortcuts

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