toolkit

package
v0.0.0-...-3fa6b80 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Entry

func Entry(handler func(ctx *gin.Context) (int, int, interface{})) gin.HandlerFunc

Types

type ErrorReturn

type ErrorReturn struct {
	Code int         `json:"code"`
	Msg  interface{} `json:"msg"`
}

func MakeErrorReturn

func MakeErrorReturn(code int, msg interface{}) ErrorReturn

type SuccessReturn

type SuccessReturn struct {
	Msg   string      `json:"msg"`
	Data  interface{} `json:"data"`
	Error int         `json:"error"`
}

func MakeSuccessReturn

func MakeSuccessReturn(data interface{}) SuccessReturn

Jump to

Keyboard shortcuts

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