self_errors

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	JsonErr = ErrCode{Code: 10000, Msg: "参数解析失败"}

	ParamsErr = ErrCode{Code: 10000, Msg: "参数校验失败"}

	LogicErr = ErrCode{Code: 10001, Msg: "网络请求失败"}
	LoginErr = ErrCode{Code: -126, Msg: "需要登录"}
)

Functions

func JsonErrExport

func JsonErrExport(data ErrCode, err error, userMsg string) map[string]interface{}

Types

type ErrCode

type ErrCode struct {
	Code int
	Msg  string
}

Jump to

Keyboard shortcuts

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