ts_error

package
v0.0.0-...-78514e9 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Success      = 10000
	ParamInvalid = 10001 // 无效的参数
	ParamIsEmpty = 10002

	DataFromDBErr = 20001 // FROM数据库错误
	DataToDBErr   = 20002 // TO数据库错误

	PortHoldErr      = 30001
	DoHttpRequestErr = 30002
	SystemErr        = 40001

	BusinessErr = 50001
)

统一错误码

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseResponse

type BaseResponse struct {
	Code int32       `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