request

package
v0.0.0-...-6f9dc6e Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetErrorMsg

func GetErrorMsg(request Validator, err error) string

GetErrorMsg 获取自定义错误信息

Types

type Validator

type Validator interface {
	// GetMessages 获取验证器自定义错误信息
	GetMessages() ValidatorMessages
}

Validator 验证器接口

type ValidatorMessages

type ValidatorMessages map[string]string

ValidatorMessages 验证器自定义错误信息字典

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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