Documentation ¶
Index ¶
- func Init()
- func RequestParser(ctx echo.Context, params any) error
- func Validator() *validator.Validate
- func ValidatorMaps(ctx echo.Context, params map[string]any, rules ValidatorRule) error
- func ValidatorStructError(ctx echo.Context, object any, err error) error
- type ValidatorRule
- type ValidatorWarp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidatorMaps ¶
func ValidatorMaps(ctx echo.Context, params map[string]any, rules ValidatorRule) error
func ValidatorStructError ¶
ValidatorStructError 错误处理
Types ¶
type ValidatorRule ¶
type ValidatorRule map[string]ValidatorWarp
type ValidatorWarp ¶
Click to show internal directories.
Click to hide internal directories.