format_api

package
v0.0.0-...-161ecb4 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const AuthorizationFail int64 = 250000
View Source
const CodeSuccess int64 = 10000
View Source
const CommonError int64 = 100000
View Source
const ParameterError int64 = 200000
View Source
const ServerError int64 = 300000

Variables

This section is empty.

Functions

func ApiJsonWithError

func ApiJsonWithError(code int64, msg string, data interface{}) (interface{}, error)

func CodeString

func CodeString(code int64) string

Types

type ApiFormat

type ApiFormat struct {
	Code int64       `json:"code"`
	Msg  string      `json:"msg"`
	Data interface{} `json:"data"`
}

Jump to

Keyboard shortcuts

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