base

package
v0.0.0-...-be240b2 Latest Latest
Warning

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

Go to latest
Published: May 9, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeResponse

func MakeResponse(msg string, data interface{}) map[string]interface{}

func MakeResponseSuccess

func MakeResponseSuccess(data ...interface{}) map[string]interface{}

old

func UserId

func UserId(c *gin.Context) int64

Types

type HttpResponse

type HttpResponse struct {
	Code int         `json:"code"`
	Msg  string      `json:"msg,omitempty"`
	Data interface{} `json:"data,omitempty"`
}

func Fail

func Fail(msg ...string) *HttpResponse

func Success

func Success(data ...interface{}) *HttpResponse

Jump to

Keyboard shortcuts

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