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
Click to show internal directories.
Click to hide internal directories.