requests

package
v0.0.0-...-3e386e2 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Validate      *validator.Validate
	ValidateTrans ut.Translator
)

表单验证 https://github.com/go-playground/validator

Functions

func Check

func Check(c *gin.Context, data interface{}) bool

响应表单验证结果

func Params

func Params(c *gin.Context, params interface{}) bool

绑定请求参数

func ValidateRequest

func ValidateRequest(data interface{}) (ok bool, errMsg []string)

验证表单数据

Types

This section is empty.

Jump to

Keyboard shortcuts

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