valid

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(reqModel interface{}) error

Types

type ValidateError

type ValidateError struct {
	Field   string // 验证不通过的属性
	Valid   string // 不通过的条件
	ErrCode int    // 不通过的错误码
}

ValidateError 验证错误提示

func (ValidateError) Error

func (ve ValidateError) Error() string

Jump to

Keyboard shortcuts

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