json

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

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

Go to latest
Published: Jan 12, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JsonResult

type JsonResult struct {
	ErrorCode int         `json:"errorCode"`
	Message   string      `json:"message"`
	Data      interface{} `json:"data"`
	Success   bool        `json:"success"`
}

func JsonData

func JsonData(data interface{}) *JsonResult

func JsonErrorCode

func JsonErrorCode(code int, message string) *JsonResult

func JsonErrorData

func JsonErrorData(code int, message string, data interface{}) *JsonResult

func JsonErrorMsg

func JsonErrorMsg(message string) *JsonResult

func JsonSuccess

func JsonSuccess() *JsonResult

Jump to

Keyboard shortcuts

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