xerr

package
v0.0.0-...-9b29622 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 License: MIT Imports: 0 Imported by: 3

Documentation

Index

Constants

View Source
const (
	OK                    = 200 //正确
	RequestParamErr       = 400 //参数错误
	TokenErr              = 401 //token错误
	WxMiniAppCfgErr       = 402 //小程序配置错误
	WxPublicAccountCfgErr = 403 //公众号配置错误
)
View Source
const (
	ServerCommonErr = 500 //一般的服务错误
	ServerThirdErr  = 501
)
View Source
const (
	DbTooManyConErr = ServerCommonErr + 5  //连接数过多
	DbBusyErr       = ServerCommonErr + 10 //数据库繁忙
	DbRepeatedErr   = ServerCommonErr + 15 //主键,唯一键约束
)
View Source
const (
	UserServiceErr        = 11000
	UserNotExistsErr      = UserServiceErr + 5
	UserAlreadyExistsErr  = UserServiceErr + 10
	PhoneNotExistErr      = UserServiceErr + 15
	PhoneAlreadyExistsErr = UserServiceErr + 20
	LoginPasswdErr        = UserServiceErr + 25
)
View Source
const (
	GoodsServiceErr = 13000
)
View Source
const (
	OrderServiceErr = 12000
)

Variables

This section is empty.

Functions

func ErrMsg

func ErrMsg(errcode int) string

func IsCodeErr

func IsCodeErr(errcode int) bool

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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