app

package
v0.0.0-...-1f55c80 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarkErrors

func MarkErrors(errors []*validation.Error)

Types

type Gin

type Gin struct {
	C *gin.Context
}

Gin gin.Context 封装

func (*Gin) ResponseErr

func (g *Gin) ResponseErr(httpCode, errCode int)

ResponseErr Gin http的返回错误的方法

func (*Gin) ResponseOk

func (g *Gin) ResponseOk(obj interface{})

ResponseOK Gin http的返回成功的方法

Jump to

Keyboard shortcuts

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