util

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2020 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetI18nData added in v1.0.2

func GetI18nData(c *gin.Context) gogo_i18n.GoGoi18nInterface

Types

type RequestHandler

type RequestHandler struct {
	// contains filtered or unexported fields
}

func (*RequestHandler) BindBody

func (r *RequestHandler) BindBody(c *gin.Context, body interface{}) error

BindBody : 綁定 body

func (*RequestHandler) ValidValidation

func (r *RequestHandler) ValidValidation(v *validation.Validation) error

ValidValidation : 驗證表單資訊

type RequestHandlerInterface

type RequestHandlerInterface interface {
	//BindBody : 綁定 body
	BindBody(c *gin.Context, body interface{}) error
	//ValidValidation : 驗證表單資訊
	ValidValidation(v *validation.Validation) error
}

func NewRequestHandler

func NewRequestHandler() RequestHandlerInterface

Jump to

Keyboard shortcuts

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