util

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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