app

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindAndValid

func BindAndValid(c *gin.Context, form interface{}) error

func BuildFormErr

func BuildFormErr(errs []*validation.Error) error

func JsonResponse

func JsonResponse(ctx *gin.Context, httpCode, retCode int, data interface{})

func MarkErrors

func MarkErrors(ctx context.Context, errors []*validation.Error)

func ProtoBufResponse

func ProtoBufResponse(ctx *gin.Context, httpCode int, data interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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