responseerror

package
v0.0.0-...-83d3498 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorHandle

func ErrorHandle(err error) (int, interface{})

code: 1-17 ==> rpc错误 code: 9999 ==> 其他错误

Types

type ErrorResponse

type ErrorResponse struct {
	Code     int32       `json:"code"`
	Msg      string      `json:"msg"`
	Meta     interface{} `json:"meta"`
	CauseErr string      `json:"cause_err"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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